Skip to content

Commit

Permalink
删除无用方法 (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
zouyx committed Dec 18, 2022
1 parent 369458b commit 15f242d
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions client.go
Expand Up @@ -72,9 +72,7 @@ type Client interface {
GetFloatValue(key string, defaultValue float64) float64
GetBoolValue(key string, defaultValue bool) bool
GetStringSliceValue(key string, defaultValue []string) []string
GetStringSliceValueWithSeparator(key, separator string, defaultValue []string) []string
GetIntSliceValue(key string, defaultValue []int) []int
GetIntSliceValueWithSeparator(key, separator string, defaultValue []int) []int
AddChangeListener(listener storage.ChangeListener)
RemoveChangeListener(listener storage.ChangeListener)
GetChangeListeners() *list.List
Expand Down Expand Up @@ -225,21 +223,11 @@ func (c *internalClient) GetBoolValue(key string, defaultValue bool) bool {

//GetStringSliceValue 获取[]string 配置值
func (c *internalClient) GetStringSliceValue(key string, defaultValue []string) []string {
return c.GetStringSliceValueWithSeparator(key, separator, defaultValue)
}

//GetStringSliceValueWithSeparator 获取[]string 配置值
func (c *internalClient) GetStringSliceValueWithSeparator(key, separator string, defaultValue []string) []string {
return c.GetConfig(storage.GetDefaultNamespace()).GetStringSliceValue(key, separator, defaultValue)
}

//GetIntSliceValue 获取[]int 配置值
func (c *internalClient) GetIntSliceValue(key string, defaultValue []int) []int {
return c.GetIntSliceValueWithSeparator(key, separator, defaultValue)
}

//GetIntSliceValueWithSeparator 获取[]int 配置值
func (c *internalClient) GetIntSliceValueWithSeparator(key, separator string, defaultValue []int) []int {
return c.GetConfig(storage.GetDefaultNamespace()).GetIntSliceValue(key, separator, defaultValue)
}

Expand Down

0 comments on commit 15f242d

Please sign in to comment.