remove dead code

This commit is contained in:
vyzo 2021-07-03 16:13:25 +03:00
parent 228a435ba7
commit 184d3802b6

View File

@ -636,20 +636,6 @@ func (s *SplitStore) isVMCopyContext() bool {
return strings.Contains(sk, "filecoin-project/lotus/chain/vm.Copy") return strings.Contains(sk, "filecoin-project/lotus/chain/vm.Copy")
} }
func (s *SplitStore) isBlockHeader(c cid.Cid) (isBlock bool, err error) {
if c.Prefix().Codec != cid.DagCBOR {
return false, nil
}
err = s.view(c, func(data []byte) error {
var hdr types.BlockHeader
isBlock = hdr.UnmarshalCBOR(bytes.NewBuffer(data)) == nil
return nil
})
return isBlock, err
}
func (s *SplitStore) trackTxnRef(c cid.Cid, recursive bool) error { func (s *SplitStore) trackTxnRef(c cid.Cid, recursive bool) error {
if s.txnProtect == nil { if s.txnProtect == nil {
// not compacting // not compacting