aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstlpmo <hq-STLPMO@chinaunicom.cn>2019-11-11 18:08:48 +0800
committerstlpmo <hq-STLPMO@chinaunicom.cn>2019-11-11 18:08:48 +0800
commitd07701fa757991df6397ffde5887a70e5361d1f4 (patch)
treefc098de06cf0549cebace676c95a4e0bcb00f342
parent62d393d6c90362bd596bd841266ca9390fe3bb86 (diff)
downloadseaweedfs-d07701fa757991df6397ffde5887a70e5361d1f4.tar.xz
seaweedfs-d07701fa757991df6397ffde5887a70e5361d1f4.zip
delete unused function
-rw-r--r--weed/util/config.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/weed/util/config.go b/weed/util/config.go
index 385ef92d7..7e2f9b373 100644
--- a/weed/util/config.go
+++ b/weed/util/config.go
@@ -1,8 +1,6 @@
package util
import (
- "fmt"
-
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/spf13/viper"
)
@@ -48,13 +46,3 @@ func Config() Configuration {
return viper.GetViper()
}
-func SubConfig(subKey string) (Configuration, error) {
- if subKey != "" {
- sub := viper.GetViper().Sub(subKey)
- if sub == nil {
- return nil, fmt.Errorf("sub config [%s] not exist", subKey)
- }
- return sub, nil
- }
- return viper.GetViper(), nil
-} \ No newline at end of file