Skip to content

Commit

Permalink
Revert "Handle decoding pointer to structs saved in interface{}"
Browse files Browse the repository at this point in the history
Not needed anymore after workaround was proposed:
BurntSushi#125

This reverts commit cb8d1d1.
  • Loading branch information
rasky committed Mar 9, 2016
1 parent cb8d1d1 commit 90bcb67
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,6 @@ func (md *MetaData) unify(data interface{}, rv reflect.Value) error {
if rv.NumMethod() > 0 {
return e("Unsupported type '%s'.", rv.Kind())
}
if rv.Elem().Kind() == reflect.Ptr && rv.Elem().Elem().Kind() == reflect.Struct {
return md.unifyStruct(data, rv.Elem().Elem())
}
return md.unifyAnything(data, rv)
case reflect.Float32:
fallthrough
Expand Down

0 comments on commit 90bcb67

Please sign in to comment.