From 70a593eb77be628cf0876a0e8926fa296eb4fc50 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Wed, 17 Mar 2021 16:52:33 +0300 Subject: [PATCH] [#51] neofsid: Remove unused code This code is not used after notary support in #52 Signed-off-by: Alex Vanin --- neofsid/neofsid_contract.go | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/neofsid/neofsid_contract.go b/neofsid/neofsid_contract.go index 13ab610..5229d52 100644 --- a/neofsid/neofsid_contract.go +++ b/neofsid/neofsid_contract.go @@ -2,7 +2,6 @@ package neofsidcontract import ( "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/native/crypto" "github.com/nspcc-dev/neo-go/pkg/interop/native/management" "github.com/nspcc-dev/neo-go/pkg/interop/native/std" "github.com/nspcc-dev/neo-go/pkg/interop/runtime" @@ -155,28 +154,3 @@ func getUserInfo(ctx storage.Context, key interface{}) UserInfo { return UserInfo{Keys: [][]byte{}} } - -func invokeIDKeys(owner []byte, keys [][]byte, prefix []byte) []byte { - prefix = append(prefix, owner...) - for i := range keys { - prefix = append(prefix, keys[i]...) - } - - return crypto.Sha256(prefix) -} - -func fromKnownContract(caller []byte) bool { - ctx := storage.GetReadOnlyContext() - - containerContractAddr := storage.Get(ctx, containerContractKey).([]byte) - if common.BytesEqual(caller, containerContractAddr) { - return true - } - - return false -} - -func irList() []common.IRNode { - ctx := storage.GetReadOnlyContext() - return common.InnerRingListViaStorage(ctx, netmapContractKey) -}