From 1129a1e992321ae677900ab33658514d9f84cabe Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Mon, 27 Sep 2021 09:13:46 +0300 Subject: [PATCH] remove stale code Signed-off-by: Vasiliy Tolstov --- codec.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/codec.go b/codec.go index be2f9a2..a5ed549 100644 --- a/codec.go +++ b/codec.go @@ -35,20 +35,10 @@ func (w *wrapMicroCodec) Name() string { } func (w *wrapMicroCodec) Marshal(v interface{}) ([]byte, error) { - if m, ok := v.(*codec.Frame); ok { - return m.Data, nil - } return w.Codec.Marshal(v) } func (w *wrapMicroCodec) Unmarshal(d []byte, v interface{}) error { - if d == nil || v == nil { - return nil - } - if m, ok := v.(*codec.Frame); ok { - m.Data = d - return nil - } return w.Codec.Unmarshal(d, v) }