Removed unused code

This commit is contained in:
Alfred Kamanda 2024-09-03 22:28:48 +03:00
parent 5105e902f1
commit 2d7b6bd125
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

@ -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{}