Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

delete unused function

stlpmod07701fa7579
diff --git a/weed/util/config.go b/weed/util/config.go
index 385ef92d74..7e2f9b373f 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