Skip to content

Commit

Permalink
Remove unused ReadNextError
Browse files Browse the repository at this point in the history
  • Loading branch information
pwaller committed Nov 11, 2016
1 parent e5aa905 commit 37ba031
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions msgp/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,19 +140,3 @@ func (e *ErrUnsupportedType) Error() string { return fmt.Sprintf("msgp: type %q

// Resumable returns 'true' for ErrUnsupportedType
func (e *ErrUnsupportedType) Resumable() bool { return true }

// ReadNextError is returned the buffer passed to ReadNext is not large enough.
type ReadNextError struct {
Got uintptr
Wanted uintptr
}

// Error implements the error interface
func (err ReadNextError) Error() string {
return fmt.Sprintf("msgp: slice not big enough (%d < %d)",
err.Got, err.Wanted)
}

// Resumable is always 'false' for ReadNextError, since we may be inside a
// recursive call which has already partially consumed the stream.
func (err ReadNextError) Resumable() bool { return false }

0 comments on commit 37ba031

Please sign in to comment.