Skip to content

Commit b315785

Browse files
committed
remove unsused function
1 parent 11fb8b7 commit b315785

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

solidity/src/Base7683.sol

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -351,18 +351,6 @@ abstract contract Base7683 is IOriginSettler, IDestinationSettler {
351351

352352
// ============ Internal Functions ============
353353

354-
/**
355-
* @notice Computes the index of the bitmap and the bit position within the bitmap for a given nonce.
356-
* @dev Used for unordered nonces to map a nonce to a specific word and bit position.
357-
* @param _nonce The nonce to derive the word and bit positions.
358-
* @return _wordPos The index of the bitmap in the nonce mapping.
359-
* @return _bitPos The bit position within the bitmap word.
360-
*/
361-
function bitmapPositions(uint256 _nonce) private pure returns (uint256 _wordPos, uint256 _bitPos) {
362-
_wordPos = uint248(_nonce >> 8);
363-
_bitPos = uint8(_nonce);
364-
}
365-
366354
/**
367355
* @notice Marks a nonce as used by setting its bit in the appropriate bitmap.
368356
* @dev Ensures that a nonce cannot be reused by flipping the corresponding bit in the bitmap.

0 commit comments

Comments
 (0)