From e965811185c4c5e9c206f2c2ca411d2544ac24a5 Mon Sep 17 00:00:00 2001 From: pg9182 <96569817+pg9182@users.noreply.github.com> Date: Sat, 15 Oct 2022 17:01:17 -0400 Subject: pkg/api/api0: Clean up old comments --- pkg/api/api0/client.go | 4 ---- pkg/api/api0/server.go | 5 ----- 2 files changed, 9 deletions(-) (limited to 'pkg/api') diff --git a/pkg/api/api0/client.go b/pkg/api/api0/client.go index c269d4a..478a3aa 100644 --- a/pkg/api/api0/client.go +++ b/pkg/api/api0/client.go @@ -191,10 +191,6 @@ func (h *Handler) handleClientOriginAuth(w http.ResponseWriter, r *http.Request) var username string if h.OriginAuthMgr != nil { - // TODO: maybe just update this from a different thread since we don't - // actually need it during the auth process (doing it that way will - // speed up auth and also allow us to batch the Origin API calls) - if tok, ours, err := h.OriginAuthMgr.OriginAuth(false); err == nil { var notfound bool if ui, err := origin.GetUserInfo(r.Context(), tok, uid); err == nil { diff --git a/pkg/api/api0/server.go b/pkg/api/api0/server.go index 06f4957..982b203 100644 --- a/pkg/api/api0/server.go +++ b/pkg/api/api0/server.go @@ -16,11 +16,6 @@ import ( "github.com/rs/zerolog/hlog" ) -/* - /server/remove_server: - DELETE: -*/ - func (h *Handler) handleServerUpsert(w http.ResponseWriter, r *http.Request) { // note: if the API is confusing, see: // - https://github.com/R2Northstar/NorthstarLauncher/commit/753dda6231bbb2adf585bbc916c0b220e816fcdc -- cgit v1.2.3