From f483838a25caf5d495e2abb3750f98188bcf343c Mon Sep 17 00:00:00 2001 From: MaysWind Date: Tue, 27 Oct 2020 22:13:31 +0800 Subject: [PATCH] remove unused code --- cmd/webserver.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cmd/webserver.go b/cmd/webserver.go index 6aad7bdd..5598f820 100644 --- a/cmd/webserver.go +++ b/cmd/webserver.go @@ -81,10 +81,6 @@ func startWebServer(c *cli.Context) error { router.StaticFile("/mobile", filepath.Join(config.StaticRootPath, "mobile.html")) router.StaticFile("/desktop", filepath.Join(config.StaticRootPath, "desktop.html")) - if config.EnableUserRegister { - router.StaticFile("register", filepath.Join(config.StaticRootPath, "register.html")) - } - router.StaticFile("robots.txt", filepath.Join(config.StaticRootPath, "robots.txt")) router.Static("/js", filepath.Join(config.StaticRootPath, "js")) router.Static("/css", filepath.Join(config.StaticRootPath, "css"))