Skip to content

🎧 Your Personal Streaming Service

removed unused method

Deluanb9fb5eb7cad1
diff --git a/api/base_api_controller.go b/api/base_api_controller.go
index fda548e44..ea71d1fb4 100644
--- a/api/base_api_controller.go
+++ b/api/base_api_controller.go
@@ -27,17 +27,6 @@ func (c *BaseAPIController) SendError(errorCode int, message ...interface{}) {
c.CustomAbort(200, xml.Header+string(xmlBody))
}
-func (c *BaseAPIController) prepResponse(response responses.Subsonic) interface{} {
- f := c.GetString("f")
- if f == "json" {
- type jsonWrapper struct {
- Subsonic responses.Subsonic `json:"subsonic-response"`
- }
- return jsonWrapper{Subsonic: response}
- }
- return response
-}
-
func (c *BaseAPIController) SendResponse(response responses.Subsonic) {
f := c.GetString("f")
if f == "json" {