From 5d08ca65b71e96e0fcdc5c59f32b4ade57ecc876 Mon Sep 17 00:00:00 2001 From: Wessie Date: Mon, 3 Jun 2024 14:08:54 +0100 Subject: [PATCH] proxy: remove obsolete function GetAudioFormat --- proxy/metadata.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/proxy/metadata.go b/proxy/metadata.go index 618bccdc..f28d8780 100644 --- a/proxy/metadata.go +++ b/proxy/metadata.go @@ -199,13 +199,3 @@ func GetMountpoint(r *http.Request) string { } return strings.ToLower(r.URL.Path) } - -func GetAudioFormat(r *http.Request) string { - switch r.Header.Get("Content-Type") { - case "audio/mpeg": - return "MP3" - case "audio/ogg", "application/ogg": - return "OGG" - } - return "" -}