aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--writer.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/writer.go b/writer.go
index d1a4a8b..fdfa5ec 100644
--- a/writer.go
+++ b/writer.go
@@ -36,10 +36,6 @@ func (w *Writer) WriteMessage(messages ...*Message) error {
}
func send(id int, ch rune, data []byte) []byte {
- if id > maxID {
- panic("binproto: ID too big")
- }
-
header := uint64(id)<<4 | uint64(ch)
length := len(data) + encodingLength(header)
payload := make([]byte, encodingLength(uint64(length))+length)