summaryrefslogtreecommitdiff
path: root/internal/media/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/media/util.go')
-rw-r--r--internal/media/util.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/internal/media/util.go b/internal/media/util.go
index f6bf06260..4e47955ad 100644
--- a/internal/media/util.go
+++ b/internal/media/util.go
@@ -18,7 +18,6 @@
package media
import (
- "cmp"
"errors"
"fmt"
"io"
@@ -28,7 +27,6 @@ import (
"codeberg.org/gruf/go-bytesize"
"codeberg.org/gruf/go-iotools"
- "codeberg.org/gruf/go-mimetypes"
"github.com/superseriousbusiness/gotosocial/internal/gtserror"
)
@@ -87,12 +85,6 @@ func getExtension(path string) string {
return ""
}
-// getMimeType returns a suitable mimetype for file extension.
-func getMimeType(ext string) string {
- const defaultType = "application/octet-stream"
- return cmp.Or(mimetypes.MimeTypes[ext], defaultType)
-}
-
// drainToTmp drains data from given reader into a new temp file
// and closes it, returning the path of the resulting temp file.
//