Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
This is never called, as the value here is never a pointer.
  • Loading branch information
arp242 committed Oct 1, 2023
1 parent 1905bd7 commit b41de93
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,14 +242,6 @@ func (md *MetaData) unify(data any, rv reflect.Value) error {
return md.unifyInt(data, rv)
}
switch k {
case reflect.Ptr:
elem := reflect.New(rv.Type().Elem())
err := md.unify(data, reflect.Indirect(elem))
if err != nil {
return err
}
rv.Set(elem)
return nil
case reflect.Struct:
return md.unifyStruct(data, rv)
case reflect.Map:
Expand Down

0 comments on commit b41de93

Please sign in to comment.