Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix]删除无用方法 #266

Merged
merged 1 commit into from Dec 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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