Skip to content

Commit

Permalink
chore: remove unnecessary function
Browse files Browse the repository at this point in the history
  • Loading branch information
SahilVasava committed Aug 9, 2024
1 parent 334081d commit 590f0bb
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/enforcers/AllowedParamsEnforcer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,4 @@ contract AllowedParamsEnforcer is CaveatEnforcerBatch {
function getTermsInfo(bytes calldata _terms) public pure returns (Permission[] memory permissions) {
(permissions) = abi.decode(_terms, (Permission[]));
}

/**
* @dev Compares two byte arrays for equality.
* @param _a The first byte array.
* @param _b The second byte array.
* @return A boolean indicating whether the byte arrays are equal.
*/
function _compare(bytes memory _a, bytes memory _b) private pure returns (bool) {
return keccak256(_a) == keccak256(_b);
}
}

0 comments on commit 590f0bb

Please sign in to comment.