From 2d7b6bd125c6bbe8a831ad9170aabdc706097631 Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Tue, 3 Sep 2024 22:28:48 +0300 Subject: [PATCH] Removed unused code --- internal/handlers/ussd/menuhandler.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/internal/handlers/ussd/menuhandler.go b/internal/handlers/ussd/menuhandler.go index d7a98ef..12ddcde 100644 --- a/internal/handlers/ussd/menuhandler.go +++ b/internal/handlers/ussd/menuhandler.go @@ -80,10 +80,6 @@ func (fm *FlagManager) GetFlag(label string) (uint32, error) { return fm.parser.GetFlag(label) } -type FlagParserInterface interface { - GetFlag(key string) (uint32, error) -} - type Handlers struct { fs *FSData db *gdbm.Database @@ -124,18 +120,6 @@ func isValidPIN(pin string) bool { return match } -func (h *Handlers) PreloadFlags(flagKeys []string) (map[string]uint32, error) { - flags := make(map[string]uint32) - for _, key := range flagKeys { - flag, err := h.flagManager.GetFlag(key) - if err != nil { - return nil, err - } - flags[key] = flag - } - return flags, nil -} - // SetLanguage sets the language across the menu func (h *Handlers) SetLanguage(ctx context.Context, sym string, input []byte) (resource.Result, error) { res := resource.Result{}