[#75] Remove unused code

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
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) return storage.Get(ctx, indexKey).(int)
} }
func total(ctx storage.Context) int {
return storage.Get(ctx, totalKey).(int)
}
func checkPermission(ir []common.IRNode) bool { func checkPermission(ir []common.IRNode) bool {
ctx := storage.GetReadOnlyContext() ctx := storage.GetReadOnlyContext()
index := index(ctx) // read from contract memory index := index(ctx) // read from contract memory

View file

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