From 055616a18d600606740cee3337a5905b9f18c606 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Fri, 30 Aug 2019 13:33:27 +0300 Subject: [PATCH] _pkg.dev: drop zero-payload mmempool and mverack from payload, useless --- _pkg.dev/wire/payload/mmempool.go | 30 --------------------------- _pkg.dev/wire/payload/mverack.go | 30 --------------------------- _pkg.dev/wire/payload/mverack_test.go | 17 --------------- 3 files changed, 77 deletions(-) delete mode 100644 _pkg.dev/wire/payload/mmempool.go delete mode 100644 _pkg.dev/wire/payload/mverack.go delete mode 100644 _pkg.dev/wire/payload/mverack_test.go diff --git a/_pkg.dev/wire/payload/mmempool.go b/_pkg.dev/wire/payload/mmempool.go deleted file mode 100644 index b05c2c74b..000000000 --- a/_pkg.dev/wire/payload/mmempool.go +++ /dev/null @@ -1,30 +0,0 @@ -package payload - -import ( - "io" - - "github.com/CityOfZion/neo-go/pkg/wire/command" -) - -// GetMempool represents a GetMempool message on the neo-network -type GetMempool struct{} - -//NewGetMempool returns a GetMempool message -func NewGetMempool() (*GetMempool, error) { - return &GetMempool{}, nil -} - -// DecodePayload Implements Messager interface -func (v *GetMempool) DecodePayload(r io.Reader) error { - return nil -} - -// EncodePayload Implements messager interface -func (v *GetMempool) EncodePayload(w io.Writer) error { - return nil -} - -// Command Implements messager interface -func (v *GetMempool) Command() command.Type { - return command.Mempool -} diff --git a/_pkg.dev/wire/payload/mverack.go b/_pkg.dev/wire/payload/mverack.go deleted file mode 100644 index b67e995a9..000000000 --- a/_pkg.dev/wire/payload/mverack.go +++ /dev/null @@ -1,30 +0,0 @@ -package payload - -import ( - "io" - - "github.com/CityOfZion/neo-go/pkg/wire/command" -) - -//VerackMessage represents a verack message on the neo-network -type VerackMessage struct{} - -//NewVerackMessage returns a verack message -func NewVerackMessage() (*VerackMessage, error) { - return &VerackMessage{}, nil -} - -// DecodePayload Implements Messager interface -func (v *VerackMessage) DecodePayload(r io.Reader) error { - return nil -} - -// EncodePayload Implements messager interface -func (v *VerackMessage) EncodePayload(w io.Writer) error { - return nil -} - -// Command Implements messager interface -func (v *VerackMessage) Command() command.Type { - return command.Verack -} diff --git a/_pkg.dev/wire/payload/mverack_test.go b/_pkg.dev/wire/payload/mverack_test.go deleted file mode 100644 index 5c4832e73..000000000 --- a/_pkg.dev/wire/payload/mverack_test.go +++ /dev/null @@ -1,17 +0,0 @@ -package payload - -import ( - "testing" - - "github.com/CityOfZion/neo-go/pkg/wire/command" - - "github.com/stretchr/testify/assert" -) - -func TestNewVerack(t *testing.T) { - - verackMessage, err := NewVerackMessage() - - assert.Equal(t, nil, err) - assert.Equal(t, command.Verack, verackMessage.Command()) -}