Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Commit

Permalink
remove isContract
Browse files Browse the repository at this point in the history
  • Loading branch information
rstormsf committed Oct 16, 2017
1 parent f22ceb8 commit 09b2a74
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions contracts/Contribution.sol
Original file line number Diff line number Diff line change
Expand Up @@ -252,18 +252,6 @@ contract Contribution is Controlled, TokenController {
}
}

/// @dev Internal function to determine if an address is a contract
/// @param _addr The address being queried
/// @return True if `_addr` is a contract
function isContract(address _addr) constant internal returns (bool) {
if (_addr == 0) return false;
uint256 size;
assembly {
size := extcodesize(_addr)
}
return (size > 0);
}

/// @notice This method will can be called by the controller before the contribution period
/// end or by anybody after the `endTime`. This method finalizes the contribution period
/// by creating the remaining tokens and transferring the controller to the configured
Expand Down

0 comments on commit 09b2a74

Please sign in to comment.