diff --git a/s3/s3.go b/s3/s3.go index 7bb8799ca72b60e1c912067e63430e2633c1b40f..9401c3bb8e3f4908f1890b5e42fb00c9ae367db0 100644 --- a/s3/s3.go +++ b/s3/s3.go @@ -5,7 +5,6 @@ import ( "encoding/binary" "fmt" "net/url" - "os" "path" "strings" "time" @@ -50,12 +49,10 @@ const ( MIMETypeDefault MIMEType = "application/octet-stream" // TypeXLS defines the constant for the XLS MIME type. - MIMETypeXLS MIMEType = "application/vnd.ms-excel" + MIMETypeXLS MIMEType = "application/vnd.ms-excel" // TypeXLSX defines the constant for the XLSX MIME type. MIMETypeXLSX MIMEType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" - - ) type SessionWithHelpers struct { @@ -247,13 +244,6 @@ func (s SessionWithHelpers) DeleteObjectFromBucket(bucket string, fileName strin return nil } -func GetLogoURLFromFileName(fileName string) string { - logoUrl := "https://%s.s3.%s.amazonaws.com/logos/%s" - logoUrl = fmt.Sprintf(logoUrl, os.Getenv("S3_IMAGES_AND_NOTES_BUCKET"), os.Getenv("AWS_REGION"), fileName) - - return logoUrl -} - func GetS3FileKey(fileName string, folder string) string { // Trim leading and trailing slashes fileName = strings.TrimLeft(fileName, "/")