From e76dd2391c33a2c58dcd693a6b42a199d17cf221 Mon Sep 17 00:00:00 2001 From: jay brown Date: Tue, 15 Apr 2025 13:11:59 -0700 Subject: [PATCH] cleanup comment out unused getter until we have testing for it. --- internal/server/api/listener.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/internal/server/api/listener.go b/internal/server/api/listener.go index a1b713b4..1371b143 100644 --- a/internal/server/api/listener.go +++ b/internal/server/api/listener.go @@ -43,13 +43,13 @@ type BaseConfig struct { // experimental since it is not used yet and may pose cylical dependency issues // in handlers that are called by the generated // swagger code. This needs to be verified. -func GetConfigFromContext(ctx echo.Context) (Config, error) { - cfg, ok := ctx.Get(configContextKey).(Config) - if !ok { - return nil, errors.New("config not found in context") - } - return cfg, nil -} +//func GetConfigFromContext(ctx echo.Context) (Config, error) { +// cfg, ok := ctx.Get(configContextKey).(Config) +// if !ok { +// return nil, errors.New("config not found in context") +// } +// return cfg, nil +//} func (c *BaseConfig) SetRouter(e *echo.Echo) { c.Router = e