1
0
mirror of https://github.com/veggiedefender/torrent-client.git synced 2025-11-06 09:29:16 +02:00

Remove support for MsgPort

This commit is contained in:
Jesse Li
2020-01-02 12:30:17 -05:00
parent 81a6437145
commit 669f15ec75
2 changed files with 0 additions and 3 deletions

View File

@@ -154,8 +154,6 @@ func (m *Message) name() string {
return "Piece"
case MsgCancel:
return "Cancel"
case MsgPort:
return "Port"
default:
return fmt.Sprintf("Unknown#%d", m.ID)
}

View File

@@ -254,7 +254,6 @@ func TestString(t *testing.T) {
{&Message{MsgRequest, []byte{1, 2, 3}}, "Request [3]"},
{&Message{MsgPiece, []byte{1, 2, 3}}, "Piece [3]"},
{&Message{MsgCancel, []byte{1, 2, 3}}, "Cancel [3]"},
{&Message{MsgPort, []byte{1, 2, 3}}, "Port [3]"},
{&Message{99, []byte{1, 2, 3}}, "Unknown#99 [3]"},
}