Skip to content

Commit

Permalink
Remove “unreachable” code.
Browse files Browse the repository at this point in the history
Go hasn't needed this for a long time now.
  • Loading branch information
Adam Langley committed Nov 18, 2016
1 parent 8620167 commit f62b115
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions xmpp/xmpp.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,6 @@ func (c *Conn) Next() (stanza Stanza, err error) {

return
}

panic("unreachable")
}

// Cancel cancels and outstanding request. The request's channel is closed.
Expand Down Expand Up @@ -736,7 +734,6 @@ func nextStart(p *xml.Decoder) (elem xml.StartElement, err error) {
return
}
}
panic("unreachable")
}

// RFC 3920 C.1 Streams name space
Expand Down

0 comments on commit f62b115

Please sign in to comment.