From cfecb093a05767e2be816a611660c54bc01edca1 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Wed, 19 May 2021 11:46:33 +0300 Subject: [PATCH] [#75] Remove unused code Signed-off-by: Alex Vanin --- alphabet/alphabet_contract.go | 4 ---- balance/balance_contract.go | 7 +------ 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/alphabet/alphabet_contract.go b/alphabet/alphabet_contract.go index e90d6d7..4098805 100644 --- a/alphabet/alphabet_contract.go +++ b/alphabet/alphabet_contract.go @@ -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 diff --git a/balance/balance_contract.go b/balance/balance_contract.go index e354384..535090c 100644 --- a/balance/balance_contract.go +++ b/balance/balance_contract.go @@ -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 {