From 895aa896bce8f5a7f51ecd0b0c0ca577519b891f Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Tue, 28 Jan 2020 11:38:55 -0800 Subject: [PATCH] config/reader/json: remove unused newValue() --- config/reader/json/values.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/config/reader/json/values.go b/config/reader/json/values.go index e955e455..926cfd04 100644 --- a/config/reader/json/values.go +++ b/config/reader/json/values.go @@ -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...)} }