mirror of
https://github.com/spf13/viper
synced 2025-05-05 19:57:18 +00:00
Merge pull request #4 from smukk9/update-tests-#1700
remove unsed function
This commit is contained in:
commit
bcddb112a5
1 changed files with 0 additions and 7 deletions
7
viper.go
7
viper.go
|
@ -1791,13 +1791,6 @@ func (v *Viper) writeConfig(filename string, force bool) error {
|
||||||
return f.Sync()
|
return f.Sync()
|
||||||
}
|
}
|
||||||
|
|
||||||
// commenting since it is unused.
|
|
||||||
// Unmarshal a Reader into a map.
|
|
||||||
// Should probably be an unexported function.
|
|
||||||
// func unmarshalReader(in io.Reader, c map[string]any) error {
|
|
||||||
// return v.unmarshalReader(in, c)
|
|
||||||
// }
|
|
||||||
|
|
||||||
func (v *Viper) unmarshalReader(in io.Reader, c map[string]any) error {
|
func (v *Viper) unmarshalReader(in io.Reader, c map[string]any) error {
|
||||||
buf := new(bytes.Buffer)
|
buf := new(bytes.Buffer)
|
||||||
buf.ReadFrom(in)
|
buf.ReadFrom(in)
|
||||||
|
|
Loading…
Add table
Reference in a new issue