Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Remove newAddressSet
  • Loading branch information
nventuro committed Feb 4, 2020
commit f6465a16c7f07d93fd3834965aa5b2ba4919a40d
4 changes: 0 additions & 4 deletions contracts/mocks/EnumerableSetMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ contract EnumerableSetMock{

EnumerableSet.AddressSet private set;

constructor() public {
set = EnumerableSet.newAddressSet();
}

function contains(address value) public view returns (bool) {
return set.contains(value);
}
Expand Down
11 changes: 0 additions & 11 deletions contracts/utils/EnumerableSet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,6 @@ library EnumerableSet {
address[] values;
}

/**
* @dev Creates a new empty address set.
*/
function newAddressSet()
internal
pure
returns (AddressSet memory)
{
return AddressSet({values: new address[](0)});
}

/**
* @dev Add a value to a set. O(1).
* Returns false if the value was already in the set.
Expand Down