aboutsummaryrefslogtreecommitdiffstats
path: root/config/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'config/config.go')
-rw-r--r--config/config.go17
1 files changed, 0 insertions, 17 deletions
diff --git a/config/config.go b/config/config.go
index 6bf767af..de8cd0d0 100644
--- a/config/config.go
+++ b/config/config.go
@@ -7,28 +7,12 @@ import (
"os"
"path"
"strings"
- "unicode"
"github.com/go-ini/ini"
"github.com/kyoh86/xdg"
"github.com/mitchellh/go-homedir"
)
-// Input: TimestampFormat
-// Output: timestamp-format
-func mapName(raw string) string {
- newstr := make([]rune, 0, len(raw))
- for i, chr := range raw {
- if isUpper := 'A' <= chr && chr <= 'Z'; isUpper {
- if i > 0 {
- newstr = append(newstr, '-')
- }
- }
- newstr = append(newstr, unicode.ToLower(chr))
- }
- return string(newstr)
-}
-
// Set at build time
var (
shareDir string
@@ -126,7 +110,6 @@ func LoadConfigFromFile(root *string, accts []string) error {
if err != nil {
return err
}
- file.NameMapper = mapName
if err := parseGeneral(file); err != nil {
return err