From 88b2e28b369b0e33f7c89810a6be13fbd8a91e4a Mon Sep 17 00:00:00 2001 From: Shogo Hyodo Date: Mon, 25 Jul 2022 11:39:16 +0900 Subject: [PATCH] Remove unused variable and function --- x/bank/keeper/send.go | 4 ---- x/bank/types/key.go | 3 --- 2 files changed, 7 deletions(-) diff --git a/x/bank/keeper/send.go b/x/bank/keeper/send.go index 043471e05c..6aba1be430 100644 --- a/x/bank/keeper/send.go +++ b/x/bank/keeper/send.go @@ -58,10 +58,6 @@ func NewBaseSendKeeper( } } -func AddressToPrefixKey(addr sdk.AccAddress) []byte { - return []byte(addr.String() + types.AddressDenomDelimiter) -} - // GetParams returns the total set of bank parameters. func (k BaseSendKeeper) GetParams(ctx sdk.Context) (params types.Params) { k.paramSpace.GetParamSet(ctx, ¶ms) diff --git a/x/bank/types/key.go b/x/bank/types/key.go index 66dec0c4ec..a85dd983ab 100644 --- a/x/bank/types/key.go +++ b/x/bank/types/key.go @@ -26,9 +26,6 @@ var ( BalancesPrefix = []byte{0x02} SupplyKey = []byte{0x00} DenomMetadataPrefix = []byte{0x1} - - // Contract: Address must not contain this character - AddressDenomDelimiter = "," ) // DenomMetadataKey returns the denomination metadata key.