From 8e5f68efbd74f78ef5b6ba268fd0089e25690c92 Mon Sep 17 00:00:00 2001 From: Thrilok Kumar Date: Thu, 20 Aug 2020 21:57:37 +0530 Subject: [PATCH] Removed not used function --- contracts/mapping/curve_gauge_mapping.sol | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/contracts/mapping/curve_gauge_mapping.sol b/contracts/mapping/curve_gauge_mapping.sol index cd6b14f..22863d1 100644 --- a/contracts/mapping/curve_gauge_mapping.sol +++ b/contracts/mapping/curve_gauge_mapping.sol @@ -20,22 +20,6 @@ contract BytesHelper { 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 {