Skip to content

Commit

Permalink
Merge pull request #2708 from aeternity/remove-unused-function
Browse files Browse the repository at this point in the history
Remove unused function
  • Loading branch information
jur0 committed Aug 26, 2019
2 parents e17cf63 + af7604d commit 5a31ead
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions apps/aecore/src/aec_accounts.erl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

attach_ga_contract/3,
earn/2,
is_legal_at_height/2,
spend/3,
spend_without_nonce_bump/2,
set_nonce/2,
Expand Down Expand Up @@ -130,14 +129,6 @@ type(#account{ ga_contract = C }) -> contract = aeser_id:specialize_type
is_payable(#account{ flags = 0 }) -> true;
is_payable(#account{ flags = N }) -> not get_flag(non_payable, N).

-spec is_legal_at_height(account(), aec_blocks:height()) -> boolean().
is_legal_at_height(#account{ flags = 0, ga_contract = undefined }, _Height) ->
true;
is_legal_at_height(#account{ flags = 0 }, Height) ->
aec_hard_forks:protocol_effective_at_height(Height) >= ?FORTUNA_PROTOCOL_VSN;
is_legal_at_height(_Account, Height) ->
aec_hard_forks:protocol_effective_at_height(Height) >= ?LIMA_PROTOCOL_VSN.

-spec serialize(account()) -> deterministic_account_binary_with_pubkey().
serialize(#account{ flags = 0, ga_contract = undefined } = Account) ->
serialize(?ACCOUNT_VSN_1, Account);
Expand Down

0 comments on commit 5a31ead

Please sign in to comment.