From 532a7fe7262f0fe4430c8b27891669241a9853a9 Mon Sep 17 00:00:00 2001 From: simon987 Date: Sun, 10 Mar 2019 11:21:45 -0400 Subject: [PATCH] Remove dead code --- api/api.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/api/api.go b/api/api.go index f1c390d..20deb5d 100644 --- a/api/api.go +++ b/api/api.go @@ -24,11 +24,6 @@ var info = Info{ Version: "1.0", } -var motd = WebsocketMotd{ - Info: info, - Motd: "Hello, world", -} - type WebApi struct { server fasthttp.Server db *gorm.DB @@ -90,18 +85,9 @@ func New(db *gorm.DB) *WebApi { api.db = db db.AutoMigrate(&UploadSlot{}) - api.setupMotd() - return api } -func (api *WebApi) setupMotd() { - var data []byte - data, _ = json.Marshal(motd) - motdMsg, _ := websocket.NewPreparedMessage(websocket.TextMessage, data) - api.MotdMessage = motdMsg -} - func (api *WebApi) Run() { address := GetServerAddress()