Merge pull request #1139 from alrs/prune-unused-config-reader-func

config/reader/json: remove unused newValue()
This commit is contained in:
Asim Aslam 2020-01-28 19:50:03 +00:00 committed by GitHub
commit 59f6ca5564
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,13 +30,6 @@ func newValues(ch *source.ChangeSet) (reader.Values, error) {
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 {
return &jsonValue{j.sj.GetPath(path...)}
}