summaryrefslogtreecommitdiff
path: root/plugins/config/plugin.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-12-21 13:15:24 +0300
committerValery Piashchynski <[email protected]>2020-12-21 13:15:24 +0300
commit7b32b6b93576ec72b4b7fdf2068e655f869e9cf8 (patch)
tree8bb4ec0c753d488efc08572c7bd55fe9c0eb1c67 /plugins/config/plugin.go
parente7a62f19155bbba9ac17527e2abb30d31c632655 (diff)
Removed unused function from config
Diffstat (limited to 'plugins/config/plugin.go')
-rwxr-xr-xplugins/config/plugin.go12
1 files changed, 0 insertions, 12 deletions
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
-}