mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
Removed not used function
This commit is contained in:
parent
b2a31a24c7
commit
8e5f68efbd
|
@ -20,22 +20,6 @@ contract BytesHelper {
|
||||||
result := mload(add(str, 32))
|
result := mload(add(str, 32))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function bytes32ToString(bytes32 _bytes32) internal pure returns (string memory) {
|
|
||||||
bytes32 _temp;
|
|
||||||
uint count;
|
|
||||||
for (uint256 i; i < 32; i++) {
|
|
||||||
_temp = _bytes32[i];
|
|
||||||
if( _temp != bytes32(0)) {
|
|
||||||
count += 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
bytes memory bytesArray = new bytes(count);
|
|
||||||
for (uint256 i; i < count; i++) {
|
|
||||||
bytesArray[i] = (_bytes32[i]);
|
|
||||||
}
|
|
||||||
return (string(bytesArray));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
contract Helpers is BytesHelper {
|
contract Helpers is BytesHelper {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user