Skip to content

Commit

Permalink
Merge pull request #12 from morpho-org/feat/add-total-voting-power-ge…
Browse files Browse the repository at this point in the history
…tter

fix: remove unused function
  • Loading branch information
Jean-Grimal authored Oct 17, 2024
2 parents 179307a + 8a13849 commit 084f751
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/ERC20DelegatesUpgradeable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,6 @@ abstract contract ERC20DelegatesUpgradeable is
_moveDelegateVotes(delegates(from), delegates(to), amount);
}

/// @dev Returns the current total supply of votes.
function _getTotalSupply() internal view returns (uint256) {
ERC20DelegatesStorage storage $ = _getERC20DelegatesStorage();
return $._totalVotingPower;
}

/// @dev Must return the voting units held by an account.
function _getVotingUnits(address account) internal view returns (uint256) {
return balanceOf(account);
Expand Down

0 comments on commit 084f751

Please sign in to comment.