From 4ed5341a4a4e16ec2e488f984896e620c8bc75a5 Mon Sep 17 00:00:00 2001 From: gammazero <11790789+gammazero@users.noreply.github.com> Date: Wed, 2 Oct 2024 06:49:27 -0700 Subject: [PATCH] rm unused function --- plugin/plugins/pebbleds/pebbleds.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/plugin/plugins/pebbleds/pebbleds.go b/plugin/plugins/pebbleds/pebbleds.go index d401ad75f..80bd107fb 100644 --- a/plugin/plugins/pebbleds/pebbleds.go +++ b/plugin/plugins/pebbleds/pebbleds.go @@ -142,18 +142,6 @@ func getConfigBool(name string, params map[string]any) (bool, error) { return false, nil } -func getConfigString(name string, params map[string]any) (string, error) { - val, ok := params[name] - if ok { - sval, ok := val.(string) - if !ok { - return "", fmt.Errorf("%q field was not a string", name) - } - return sval, nil - } - return "", nil -} - func getConfigInt(name string, params map[string]any) (int, error) { val, ok := params[name] if ok {