Skip to content

Commit d3ff8bd

Browse files
committed
Remove unused method
1 parent ad94f2d commit d3ff8bd

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

rvsol/src/PreimageOracle.sol

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,6 @@ contract PreimageOracle is IPreimageOracle {
2424
dat_ = preimageParts[_key][_offset];
2525
}
2626

27-
// temporary method for localization. Will be removed to PreimageKeyLib.sol
28-
function localize(bytes32 _key, bytes32 _localContext) internal view returns (bytes32 localizedKey_) {
29-
assembly {
30-
// Grab the current free memory pointer to restore later.
31-
let ptr := mload(0x40)
32-
// Store the local data key and caller next to each other in memory for hashing.
33-
mstore(0, _key)
34-
mstore(0x20, caller())
35-
mstore(0x40, _localContext)
36-
// Localize the key with the above `localize` operation.
37-
localizedKey_ := or(and(keccak256(0, 0x60), not(shl(248, 0xFF))), shl(248, 1))
38-
// Restore the free memory pointer.
39-
mstore(0x40, ptr)
40-
}
41-
}
42-
4327
function loadLocalData(uint256 _ident, bytes32 _localContext, bytes32 _word, uint256 _size, uint256 _partOffset)
4428
external
4529
returns (bytes32 key_)

0 commit comments

Comments
 (0)