From 0ead2da2da9d4aab9f85b3c547e66e808ee4a0b5 Mon Sep 17 00:00:00 2001 From: maru Date: Wed, 8 May 2024 15:47:56 -0400 Subject: [PATCH] Remove unused endpoint game/playercount --- api/common.go | 1 - api/endpoints.go | 4 ---- 2 files changed, 5 deletions(-) diff --git a/api/common.go b/api/common.go index 62ef843..920d41e 100644 --- a/api/common.go +++ b/api/common.go @@ -40,7 +40,6 @@ func Init(mux *http.ServeMux) { mux.HandleFunc("GET /account/logout", handleAccountLogout) // game - mux.HandleFunc("GET /game/playercount", handleGamePlayerCount) mux.HandleFunc("GET /game/titlestats", handleGameTitleStats) mux.HandleFunc("GET /game/classicsessioncount", handleGameClassicSessionCount) diff --git a/api/endpoints.go b/api/endpoints.go index fb41047..ee4f76d 100644 --- a/api/endpoints.go +++ b/api/endpoints.go @@ -144,10 +144,6 @@ func handleAccountLogout(w http.ResponseWriter, r *http.Request) { // game -func handleGamePlayerCount(w http.ResponseWriter, r *http.Request) { - w.Write([]byte(strconv.Itoa(playerCount))) -} - func handleGameTitleStats(w http.ResponseWriter, r *http.Request) { err := json.NewEncoder(w).Encode(defs.TitleStats{ PlayerCount: playerCount,