Skip to content

Commit 6c30f0c

Browse files
committed
pkg/config: remove NewConfig()
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
1 parent 5d22b5a commit 6c30f0c

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

pkg/config/new.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,6 @@ func newLocked(options *Options, paths *paths) (*Config, error) {
174174
return config, nil
175175
}
176176

177-
// NewConfig creates a new Config. It starts with an empty config and, if
178-
// specified, merges the config at `userConfigPath` path.
179-
//
180-
// Deprecated: use new instead.
181-
func NewConfig(userConfigPath string) (*Config, error) {
182-
return New(&Options{additionalConfigs: []string{userConfigPath}})
183-
}
184-
185177
// Returns the list of configuration files, if they exist in order of hierarchy.
186178
// The files are read in order and each new file can/will override previous
187179
// file settings.

0 commit comments

Comments
 (0)