remove stale code

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2021-09-27 09:13:46 +03:00
parent 033fcd3e2b
commit 1129a1e992

View File

@ -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)
}