From b17de011dc336ed329d70fb0c7950b67b8192292 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Venturo?= Date: Fri, 5 Oct 2018 22:18:59 -0300 Subject: [PATCH] Removed old, unused mocks. (#1382) --- contracts/mocks/ForceEther.sol | 15 ---------- contracts/mocks/MessageHelper.sol | 49 ------------------------------- 2 files changed, 64 deletions(-) delete mode 100644 contracts/mocks/ForceEther.sol delete mode 100644 contracts/mocks/MessageHelper.sol diff --git a/contracts/mocks/ForceEther.sol b/contracts/mocks/ForceEther.sol deleted file mode 100644 index bca5646f3..000000000 --- a/contracts/mocks/ForceEther.sol +++ /dev/null @@ -1,15 +0,0 @@ -pragma solidity ^0.4.24; - -// @title Force Ether into a contract. -// @notice even -// if the contract is not payable. -// @notice To use, construct the contract with the target as argument. -// @author Remco Bloemen -contract ForceEther { - - constructor() public payable { } - - function destroyAndSend(address recipient) public { - selfdestruct(recipient); - } -} diff --git a/contracts/mocks/MessageHelper.sol b/contracts/mocks/MessageHelper.sol deleted file mode 100644 index 54c084414..000000000 --- a/contracts/mocks/MessageHelper.sol +++ /dev/null @@ -1,49 +0,0 @@ -pragma solidity ^0.4.24; - -contract MessageHelper { - - event Show(bytes32 b32, uint256 number, string text); - event Buy(bytes32 b32, uint256 number, string text, uint256 value); - - function showMessage( - bytes32 _message, - uint256 _number, - string _text - ) - public - returns (bool) - { - emit Show(_message, _number, _text); - return true; - } - - function buyMessage( - bytes32 _message, - uint256 _number, - string _text - ) - public - payable - returns (bool) - { - emit Buy( - _message, - _number, - _text, - msg.value); - return true; - } - - function fail() public { - require(false); - } - - function call(address _to, bytes _data) public returns (bool) { - // solium-disable-next-line security/no-low-level-calls - if (_to.call(_data)) - return true; - else - return false; - } - -}