[#51] neofsid: Remove unused code
This code is not used after notary support in #52 Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
44cb7ccfd8
commit
70a593eb77
1 changed files with 0 additions and 26 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue