Skip to content

Commit c0e1d9d

Browse files
authored
Remove unused variables (#71)
1 parent 93ba4f6 commit c0e1d9d

File tree

3 files changed

+0
-16
lines changed

3 files changed

+0
-16
lines changed

contracts/sfc/ConstantsManager.sol

-9
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,10 @@ contract ConstantsManager is Ownable {
3232
uint256 public targetGasPowerPerSecond;
3333
uint256 public gasPriceBalancingCounterweight;
3434

35-
address private secondaryOwner_erased;
36-
37-
// event SecondaryOwnershipTransferred(address indexed previousOwner, address indexed newOwner);
38-
3935
function initialize() external initializer {
4036
Ownable.initialize(msg.sender);
4137
}
4238

43-
// function setSecondaryOwner(address v) onlyOwner external {
44-
// emit SecondaryOwnershipTransferred(secondaryOwner, v);
45-
// secondaryOwner = v;
46-
// }
47-
4839
function updateMinSelfStake(uint256 v) external virtual onlyOwner {
4940
require(v >= 100000 * 1e18, "too small value");
5041
require(v <= 10000000 * 1e18, "too large value");

contracts/sfc/NodeDriver.sol

-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ contract NodeDriverAuth is Initializable, Ownable {
228228
}
229229

230230
contract NodeDriver is Initializable {
231-
uint256 private erased0;
232231
NodeDriverAuth internal backend;
233232
EVMWriter internal evmWriter;
234233

contracts/sfc/SFCState.sol

-6
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,11 @@ contract SFCState is Initializable, Ownable {
7979
uint256 totalSupply;
8080
}
8181

82-
uint256 private erased0;
8382
uint256 public totalSupply;
8483
mapping(uint256 => EpochSnapshot) public getEpochSnapshot;
8584

86-
uint256 private erased1;
87-
uint256 private erased2;
88-
8985
mapping(uint256 => uint256) public slashingRefundRatio; // validator ID -> (slashing refund ratio)
9086

91-
uint256 private erased3;
92-
uint256 private erased4;
9387
uint256 public minGasPrice;
9488

9589
address public treasuryAddress;

0 commit comments

Comments
 (0)