From 7b32b6b93576ec72b4b7fdf2068e655f869e9cf8 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Mon, 21 Dec 2020 13:15:24 +0300 Subject: Removed unused function from config --- plugins/config/plugin.go | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'plugins') diff --git a/plugins/config/plugin.go b/plugins/config/plugin.go index b438a185..4cde314d 100755 --- a/plugins/config/plugin.go +++ b/plugins/config/plugin.go @@ -3,7 +3,6 @@ package config import ( "bytes" "errors" - "fmt" "strings" "github.com/spf13/viper" @@ -69,14 +68,3 @@ func (v *Viper) Get(name string) interface{} { func (v *Viper) Has(name string) bool { return v.viper.IsSet(name) } - -func parseValue(value string) string { - escape := []rune(value)[0] - - if escape == '"' || escape == '\'' || escape == '`' { - value = strings.Trim(value, string(escape)) - value = strings.ReplaceAll(value, fmt.Sprintf("\\%s", string(escape)), string(escape)) - } - - return value -} -- cgit v1.2.3