Skip to content

docs: fix stale NatSpec and remove dead code after PR #886 - #1073

Open
rakhmadaa-gif wants to merge 2 commits into
Uniswap:mainfrom
rakhmadaa-gif:fix/doc-hygiene-post-pr886
Open

rakhmadaa-gif wants to merge 2 commits into
Uniswap:mainfrom
rakhmadaa-gif:fix/doc-hygiene-post-pr886

Conversation

@rakhmadaa-gif

Copy link
Copy Markdown

Summary

Two documentation-only cleanups following PR #886:

1. Stale NatSpec comments

  • IProtocolFees.sol:40 — Remove obsolete @dev This will revert if the contract is unlocked. The lock check was deliberately removed in PR Solve ToB-UNI4-3 without restricting sync #886 (ToB-UNI4-3 fix) to allow collectProtocolFees during an unlock, but the NatSpec was never updated.

  • IPoolManager.sol:111 — Update incomplete @dev The only functions callable without an unlocking are initialize and updateDynamicLPFee. PR Solve ToB-UNI4-3 without restricting sync #886 also removed the lock check from sync, and collectProtocolFees + the ERC6909 functions were always callable. The comment now lists all always-callable functions.

2. Dead code removal

  • Remove _isUnlocked() abstract declaration (ProtocolFees.sol) and its overrides (PoolManager.sol, ProxyPoolManager.sol). The last caller was the lock check in collectProtocolFees, removed in PR Solve ToB-UNI4-3 without restricting sync #886. These are now vestigial.

Impact

Zero functional change. Pure documentation hygiene and dead code cleanup. All tests pass (forge build succeeds).

Commits

Split into two commits so maintainers can cherry-pick independently:

  1. docs: fix stale NatSpec after PR #886 — NatSpec updates only
  2. refactor: remove dead _isUnlocked code — Dead code removal

If only the NatSpec fixes are desired, the second commit can be dropped.

- Remove obsolete 'will revert if unlocked' from collectProtocolFees
  (lock check was deliberately removed in PR Uniswap#886 ToB-UNI4-3 fix)
- Update unlock comment to list all always-callable functions
  (sync/collectProtocolFees/ERC6909 also callable, lock check removed)
…swap#886)

The _isUnlocked function and its overrides have no callers since
PR Uniswap#886 removed the lock check from collectProtocolFees. Clean up
the vestigial declaration and implementations.
@rakhmadaa-gif
rakhmadaa-gif requested a review from a team as a code owner September 10, 2026 20:03

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant