From c0e1d9d962cc5931fd79dbcceb07f51d4b03ebce Mon Sep 17 00:00:00 2001 From: Mike-CZ Date: Tue, 22 Oct 2024 11:54:49 +0200 Subject: [PATCH] Remove unused variables (#71) --- contracts/sfc/ConstantsManager.sol | 9 --------- contracts/sfc/NodeDriver.sol | 1 - contracts/sfc/SFCState.sol | 6 ------ 3 files changed, 16 deletions(-) diff --git a/contracts/sfc/ConstantsManager.sol b/contracts/sfc/ConstantsManager.sol index 866a3f2..7a7b8d3 100644 --- a/contracts/sfc/ConstantsManager.sol +++ b/contracts/sfc/ConstantsManager.sol @@ -32,19 +32,10 @@ contract ConstantsManager is Ownable { uint256 public targetGasPowerPerSecond; uint256 public gasPriceBalancingCounterweight; - address private secondaryOwner_erased; - - // event SecondaryOwnershipTransferred(address indexed previousOwner, address indexed newOwner); - function initialize() external initializer { Ownable.initialize(msg.sender); } - // function setSecondaryOwner(address v) onlyOwner external { - // emit SecondaryOwnershipTransferred(secondaryOwner, v); - // secondaryOwner = v; - // } - function updateMinSelfStake(uint256 v) external virtual onlyOwner { require(v >= 100000 * 1e18, "too small value"); require(v <= 10000000 * 1e18, "too large value"); diff --git a/contracts/sfc/NodeDriver.sol b/contracts/sfc/NodeDriver.sol index 6e91706..5bfe390 100644 --- a/contracts/sfc/NodeDriver.sol +++ b/contracts/sfc/NodeDriver.sol @@ -228,7 +228,6 @@ contract NodeDriverAuth is Initializable, Ownable { } contract NodeDriver is Initializable { - uint256 private erased0; NodeDriverAuth internal backend; EVMWriter internal evmWriter; diff --git a/contracts/sfc/SFCState.sol b/contracts/sfc/SFCState.sol index d5bf112..ec74fdd 100644 --- a/contracts/sfc/SFCState.sol +++ b/contracts/sfc/SFCState.sol @@ -79,17 +79,11 @@ contract SFCState is Initializable, Ownable { uint256 totalSupply; } - uint256 private erased0; uint256 public totalSupply; mapping(uint256 => EpochSnapshot) public getEpochSnapshot; - uint256 private erased1; - uint256 private erased2; - mapping(uint256 => uint256) public slashingRefundRatio; // validator ID -> (slashing refund ratio) - uint256 private erased3; - uint256 private erased4; uint256 public minGasPrice; address public treasuryAddress;