[#75] Remove unused code

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
enable-notary-in-public-chains
Alex Vanin 2021-05-19 11:46:33 +03:00
parent 4585f96acf
commit cfecb093a0
2 changed files with 1 additions and 10 deletions

View File

@ -105,10 +105,6 @@ func index(ctx storage.Context) int {
return storage.Get(ctx, indexKey).(int)
}
func total(ctx storage.Context) int {
return storage.Get(ctx, totalKey).(int)
}
func checkPermission(ir []common.IRNode) bool {
ctx := storage.GetReadOnlyContext()
index := index(ctx) // read from contract memory

View File

@ -43,12 +43,7 @@ const (
notaryDisabledKey = "notary"
)
var (
lockTransferMsg = []byte("lock assets to withdraw")
unlockTransferMsg = []byte("asset lock expired")
token Token
)
var token Token
// CreateToken initializes the Token Interface for the Smart Contract to operate with.
func CreateToken() Token {