Remove unused files (#1698)
* Remove unused dependencies. * Remove unused mock contracts.pull/1710/head
parent
8b44efd035
commit
35d8e860ad
@ -1,19 +0,0 @@ |
||||
pragma solidity ^0.5.2; |
||||
|
||||
contract Acknowledger { |
||||
event AcknowledgeFoo(uint256 a); |
||||
event AcknowledgeBarSingle(uint256 a); |
||||
event AcknowledgeBarDouble(uint256 a, uint256 b); |
||||
|
||||
function foo(uint256 a) public { |
||||
emit AcknowledgeFoo(a); |
||||
} |
||||
|
||||
function bar(uint256 a) public { |
||||
emit AcknowledgeBarSingle(a); |
||||
} |
||||
|
||||
function bar(uint256 a, uint256 b) public { |
||||
emit AcknowledgeBarDouble(a, b); |
||||
} |
||||
} |
@ -1,73 +0,0 @@ |
||||
pragma solidity ^0.5.2; |
||||
|
||||
contract EventEmitter { |
||||
event Argumentless(); |
||||
event ShortUint(uint8 value); |
||||
event ShortInt(int8 value); |
||||
event LongUint(uint256 value); |
||||
event LongInt(int256 value); |
||||
event Address(address value); |
||||
event Boolean(bool value); |
||||
event String(string value); |
||||
event LongUintBooleanString(uint256 uintValue, bool booleanValue, string stringValue); |
||||
|
||||
constructor (uint8 uintValue, bool booleanValue, string memory stringValue) public { |
||||
emit ShortUint(uintValue); |
||||
emit Boolean(booleanValue); |
||||
emit String(stringValue); |
||||
} |
||||
|
||||
function emitArgumentless() public { |
||||
emit Argumentless(); |
||||
} |
||||
|
||||
function emitShortUint(uint8 value) public { |
||||
emit ShortUint(value); |
||||
} |
||||
|
||||
function emitShortInt(int8 value) public { |
||||
emit ShortInt(value); |
||||
} |
||||
|
||||
function emitLongUint(uint256 value) public { |
||||
emit LongUint(value); |
||||
} |
||||
|
||||
function emitLongInt(int256 value) public { |
||||
emit LongInt(value); |
||||
} |
||||
|
||||
function emitAddress(address value) public { |
||||
emit Address(value); |
||||
} |
||||
|
||||
function emitBoolean(bool value) public { |
||||
emit Boolean(value); |
||||
} |
||||
|
||||
function emitString(string memory value) public { |
||||
emit String(value); |
||||
} |
||||
|
||||
function emitLongUintBooleanString(uint256 uintValue, bool booleanValue, string memory stringValue) public { |
||||
emit LongUintBooleanString(uintValue, booleanValue, stringValue); |
||||
} |
||||
|
||||
function emitLongUintAndBoolean(uint256 uintValue, bool boolValue) public { |
||||
emit LongUint(uintValue); |
||||
emit Boolean(boolValue); |
||||
} |
||||
|
||||
function emitStringAndEmitIndirectly(string memory value, IndirectEventEmitter emitter) public { |
||||
emit String(value); |
||||
emitter.emitStringIndirectly(value); |
||||
} |
||||
} |
||||
|
||||
contract IndirectEventEmitter { |
||||
event IndirectString(string value); |
||||
|
||||
function emitStringIndirectly(string memory value) public { |
||||
emit IndirectString(value); |
||||
} |
||||
} |
@ -1,23 +0,0 @@ |
||||
pragma solidity ^0.5.2; |
||||
|
||||
contract Failer { |
||||
uint256[] private array; |
||||
|
||||
function dontFail() public pure { |
||||
// solhint-disable-previous-line no-empty-blocks |
||||
} |
||||
|
||||
function failWithRevert() public pure { |
||||
revert(); |
||||
} |
||||
|
||||
function failWithThrow() public pure { |
||||
assert(false); |
||||
} |
||||
|
||||
function failWithOutOfGas() public { |
||||
for (uint256 i = 0; i < 2**200; ++i) { |
||||
array.push(i); |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue