Skip to content

Commit

Permalink
store/marshal: prune unused unmarshalNomsError
Browse files Browse the repository at this point in the history
  • Loading branch information
alrs committed Mar 17, 2021
1 parent bf272b2 commit 73e1b8f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions go/store/marshal/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,16 +172,6 @@ func overflowError(nbf *types.NomsBinFormat, v types.Float, t reflect.Type) *Unm
return &UnmarshalTypeMismatchError{v, t, fmt.Sprintf("(%g does not fit in %s)", v, t), nbf}
}

// unmarshalNomsError wraps errors from Marshaler.UnmarshalNoms. These should
// be unwrapped and never leak to the caller of Unmarshal.
type unmarshalNomsError struct {
err error
}

func (e *unmarshalNomsError) Error() string {
return e.err.Error()
}

type decoderFunc func(ctx context.Context, nbf *types.NomsBinFormat, v types.Value, rv reflect.Value) error

func typeDecoder(t reflect.Type, tags nomsTags) (decoderFunc, error) {
Expand Down

0 comments on commit 73e1b8f

Please sign in to comment.