From ec147293c8c2a84352886023faf3f393f01fdef2 Mon Sep 17 00:00:00 2001 From: Sara Reynolds Date: Thu, 29 Aug 2024 17:28:05 -0400 Subject: [PATCH] remove pool key checker lib --- src/PositionManager.sol | 2 -- src/libraries/PoolKeyChecker.sol | 12 ------------ 2 files changed, 14 deletions(-) delete mode 100644 src/libraries/PoolKeyChecker.sol diff --git a/src/PositionManager.sol b/src/PositionManager.sol index 66f17cb1f..279d000fb 100644 --- a/src/PositionManager.sol +++ b/src/PositionManager.sol @@ -24,7 +24,6 @@ import {Notifier} from "./base/Notifier.sol"; import {CalldataDecoder} from "./libraries/CalldataDecoder.sol"; import {Permit2Forwarder} from "./base/Permit2Forwarder.sol"; import {SlippageCheckLibrary} from "./libraries/SlippageCheck.sol"; -import {PoolKeyChecker} from "./libraries/PoolKeyChecker.sol"; import {PositionInfo, PositionInfoLibrary} from "./libraries/PositionInfoLibrary.sol"; // 444444444 @@ -111,7 +110,6 @@ contract PositionManager is using SafeCast for int256; using CalldataDecoder for bytes; using SlippageCheckLibrary for BalanceDelta; - using PoolKeyChecker for PoolKey; using PositionInfoLibrary for PositionInfo; /// @inheritdoc IPositionManager diff --git a/src/libraries/PoolKeyChecker.sol b/src/libraries/PoolKeyChecker.sol deleted file mode 100644 index 949230bf3..000000000 --- a/src/libraries/PoolKeyChecker.sol +++ /dev/null @@ -1,12 +0,0 @@ -// SPDX-License-Identifier: UNLICENSED -pragma solidity ^0.8.24; - -import {PoolKey} from "@uniswap/v4-core/src/types/PoolKey.sol"; - -library PoolKeyChecker { - // On UniswapV4, the minimum tick spacing is 1. - // This means that if the tick spacing is 0, the pool key has not been set. - function isEmpty(PoolKey memory poolKey) internal pure returns (bool) { - return poolKey.tickSpacing == 0; - } -}