Skip to content

Commit

Permalink
remove unused modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
gretzke committed Feb 6, 2025
1 parent 1313f7b commit cbf3f98
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/utils/BaseHook.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,6 @@ abstract contract BaseHook is IHooks, ImmutableState {
error InvalidPool();
error HookNotImplemented();

/// @dev Only this address may call this function
modifier selfOnly() {
if (msg.sender != address(this)) revert NotSelf();
_;
}

/// @dev Only pools with hooks set to this contract may call this function
modifier onlyValidPools(IHooks hooks) {
if (hooks != this) revert InvalidPool();
_;
}

constructor(IPoolManager _manager) ImmutableState(_manager) {
validateHookAddress(this);
}
Expand Down

0 comments on commit cbf3f98

Please sign in to comment.