Skip to content

Commit

Permalink
chore(dot): remove unneeded error functions
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Aug 29, 2022
1 parent 1f4fc20 commit 9e76def
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
15 changes: 0 additions & 15 deletions dot/core/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,3 @@ var (

errNilCodeSubstitutedState = errors.New("cannot have nil CodeSubstitutedStat")
)

// ErrNilChannel is returned if a channel is nil
func ErrNilChannel(s string) error {
return fmt.Errorf("cannot have nil channel %s", s)
}

// ErrMessageCast is returned if unable to cast a network.Message to a type
func ErrMessageCast(s string) error {
return fmt.Errorf("could not cast network.Message to %s", s)
}

// ErrUnsupportedMsgType is returned if we receive an unknown message type
func ErrUnsupportedMsgType(d byte) error {
return fmt.Errorf("received unsupported message type %d", d)
}
5 changes: 0 additions & 5 deletions dot/sync/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,3 @@ var (
errStartAndEndMismatch = errors.New("request start and end hash are not on the same chain")
errFailedToGetDescendant = errors.New("failed to find descendant block")
)

// ErrNilChannel is returned if a channel is nil
func ErrNilChannel(s string) error {
return fmt.Errorf("cannot have nil channel %s", s)
}

0 comments on commit 9e76def

Please sign in to comment.