From 60b30fe91ead1549a5b9c9d5bd06b83c379b750c Mon Sep 17 00:00:00 2001 From: The3D Date: Wed, 15 Jul 2020 16:51:48 +0200 Subject: [PATCH] Removed unused function --- contracts/libraries/ReserveLogic.sol | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/contracts/libraries/ReserveLogic.sol b/contracts/libraries/ReserveLogic.sol index 0c9ed550..d3edac1c 100644 --- a/contracts/libraries/ReserveLogic.sol +++ b/contracts/libraries/ReserveLogic.sol @@ -300,25 +300,6 @@ library ReserveLogic { updateInterestRates(_reserve, _reserveAddress, _income, 0); } - /** - * @dev updates the state of the core as a consequence of a liquidation action. - * @param _collateralReserve the collateral reserve that is being liquidated - * @param _collateralToLiquidate the amount of collateral being liquidated - * @param _liquidatorReceivesAToken true if the liquidator will receive aTokens, false otherwise - **/ - function updateStateOnLiquidationAsCollateral( - ReserveData storage _collateralReserve, - address _collateralReserveAddress, - uint256 _collateralToLiquidate, - bool _liquidatorReceivesAToken - ) external { - _collateralReserve.updateCumulativeIndexesAndTimestamp(); - - if (!_liquidatorReceivesAToken) { - updateInterestRates(_collateralReserve, _collateralReserveAddress, 0, _collateralToLiquidate); - } - } - /** * @dev gets the total liquidity in the reserve. The total liquidity is the balance of the core contract + total borrows * @param _reserve the reserve address