remove unsed function
This commit is contained in:
sandeep 2024-03-25 10:14:39 -07:00 committed by GitHub
commit bcddb112a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1791,13 +1791,6 @@ func (v *Viper) writeConfig(filename string, force bool) error {
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 {
buf := new(bytes.Buffer)
buf.ReadFrom(in)