[#51] neofsid: Remove unused code

This code is not used after notary support
in #52

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
enable-notary-in-public-chains
Alex Vanin 2021-03-17 16:52:33 +03:00 committed by Alex Vanin
parent 44cb7ccfd8
commit 70a593eb77
1 changed files with 0 additions and 26 deletions

View File

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