From 1aa3cf304323ced4e90bbad623dd11e580e42af9 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Mon, 15 Jul 2019 17:51:46 +0200 Subject: [PATCH] Remove UnmarshalCBOR functions License: MIT Signed-off-by: Jakub Sztandera --- chain/actors/actor_init.go | 8 -------- chain/actors/actor_storagemarket.go | 8 -------- 2 files changed, 16 deletions(-) diff --git a/chain/actors/actor_init.go b/chain/actors/actor_init.go index 2424ecd7a..4e5c1fe57 100644 --- a/chain/actors/actor_init.go +++ b/chain/actors/actor_init.go @@ -43,14 +43,6 @@ type ExecParams struct { Params []byte } -func (ep *ExecParams) UnmarshalCBOR(b []byte) (int, error) { - if err := cbor.DecodeInto(b, ep); err != nil { - return 0, err - } - - return len(b), nil -} - func CreateExecParams(act cid.Cid, obj interface{}) ([]byte, error) { encparams, err := cbor.DumpObject(obj) if err != nil { diff --git a/chain/actors/actor_storagemarket.go b/chain/actors/actor_storagemarket.go index 772d8d9f9..2ae622a09 100644 --- a/chain/actors/actor_storagemarket.go +++ b/chain/actors/actor_storagemarket.go @@ -34,14 +34,6 @@ type CreateStorageMinerParams struct { PeerID peer.ID } -func (p *CreateStorageMinerParams) UnmarshalCBOR(b []byte) (int, error) { - if err := cbor.DecodeInto(b, p); err != nil { - return 0, err - } - - return len(b), nil -} - func (sma StorageMarketActor) CreateStorageMiner(act *types.Actor, vmctx types.VMContext, params *CreateStorageMinerParams) (types.InvokeRet, error) { if !SupportedSectorSize(params.SectorSize) { //Fatal("Unsupported sector size")