Skip to content

Commit

Permalink
Remove unused Reserve.burnToken function (#984)
Browse files Browse the repository at this point in the history
  • Loading branch information
Asa Oines authored and ashishb committed Sep 17, 2019
1 parent 4c7797b commit 0101b22
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
10 changes: 0 additions & 10 deletions packages/protocol/contracts/stability/Reserve.sol
Original file line number Diff line number Diff line change
Expand Up @@ -131,16 +131,6 @@ contract Reserve is IReserve, Ownable, Initializable, UsingRegistry, ReentrancyG
emit SpenderRemoved(spender);
}

/**
* @notice Burns all tokens held by the Reserve.
* @param token The address of the token to burn.
*/
function burnToken(address token) external isStableToken(token) returns (bool) {
IStableToken stableToken = IStableToken(token);
require(stableToken.burn(stableToken.balanceOf(address(this))), "reserve token burn failed");
return true;
}

/**
* @notice Transfer gold.
* @param to The address that will receive the gold.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ interface IReserve {
function setTobinTaxStalenessThreshold(uint256) external;
function addToken(address) external returns (bool);
function removeToken(address, uint256) external returns (bool);
function burnToken(address) external returns (bool);
function transferGold(address, uint256) external returns (bool);
function getOrComputeTobinTax() external returns (uint256, uint256);
function getTokens() external view returns (address[] memory);
Expand Down

0 comments on commit 0101b22

Please sign in to comment.