Merge pull request #1139 from alrs/prune-unused-config-reader-func
config/reader/json: remove unused newValue()
This commit is contained in:
commit
59f6ca5564
@ -30,13 +30,6 @@ func newValues(ch *source.ChangeSet) (reader.Values, error) {
|
|||||||
return &jsonValues{ch, sj}, nil
|
return &jsonValues{ch, sj}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func newValue(s *simple.Json) reader.Value {
|
|
||||||
if s == nil {
|
|
||||||
s = simple.New()
|
|
||||||
}
|
|
||||||
return &jsonValue{s}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (j *jsonValues) Get(path ...string) reader.Value {
|
func (j *jsonValues) Get(path ...string) reader.Value {
|
||||||
return &jsonValue{j.sj.GetPath(path...)}
|
return &jsonValue{j.sj.GetPath(path...)}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user