From 979b824b2f97ff9ded4844e056e583af913e5a0b Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Wed, 25 Nov 2020 10:38:09 +0300 Subject: [PATCH] remove unused file Signed-off-by: Vasiliy Tolstov --- message.go | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 message.go diff --git a/message.go b/message.go deleted file mode 100644 index fd5cc6f..0000000 --- a/message.go +++ /dev/null @@ -1,37 +0,0 @@ -package proto - -type Message struct { - Data []byte -} - -func (m *Message) MarshalJSON() ([]byte, error) { - return m.Data, nil -} - -func (m *Message) UnmarshalJSON(data []byte) error { - m.Data = data - return nil -} - -func (m *Message) ProtoMessage() {} - -func (m *Message) Reset() { - *m = Message{} -} - -func (m *Message) String() string { - return string(m.Data) -} - -func (m *Message) Marshal() ([]byte, error) { - return m.Data, nil -} - -func (m *Message) Unmarshal(data []byte) error { - m.Data = data - return nil -} - -func NewMessage(data []byte) *Message { - return &Message{data} -}