Skip to content

chore: fix unusedArguments linter warnings - #128

Closed
kim-em wants to merge 1 commit into
masterfrom
fix-unused-arguments
Closed

chore: fix unusedArguments linter warnings#128
kim-em wants to merge 1 commit into
masterfrom
fix-unused-arguments

Conversation

@kim-em

@kim-em kim-em commented Nov 24, 2025

Copy link
Copy Markdown
Contributor

This PR fixes all unusedArguments linter warnings by:

  • Removing unused type class instances from function signatures
  • Adding omit directives for unused section variables

Changes

Files modified:

  • Loops/Basic.lean: Remove unused FirstCountableTopology and LocallyCompactSpace from continuous_average
  • ToMathlib/Analysis/Calculus.lean: Remove unused IsOrderedMonoid/IsOrderedAddMonoid from WithTop lemmas
  • ToMathlib/Analysis/Convex/Basic.lean: Remove unused IsOrderedRing from definitions and add omit directives for theorems
  • Local/Corrugation.lean: Remove unused FirstCountableTopology and LocallyCompactSpace from c0_small_on

Testing

All changes have been verified with lake build. The unusedArguments linter now reports no errors.

🤖 Generated with Claude Code

@kim-em
kim-em force-pushed the fix-unused-arguments branch from db5b65a to cc68a98 Compare November 24, 2025 01:53
This PR fixes all `unusedArguments` linter warnings by:
- Removing unused type class instances from function signatures
- Adding `omit` directives for unused section variables

Files changed:
- `Loops/Basic.lean`: Remove unused `FirstCountableTopology` and `LocallyCompactSpace` from `continuous_average`
- `ToMathlib/Analysis/Calculus.lean`: Remove unused `IsOrderedMonoid`/`IsOrderedAddMonoid` from `WithTop` lemmas
- `ToMathlib/Analysis/Convex/Basic.lean`: Remove unused `IsOrderedRing` from definitions and add `omit` directives
- `Local/Corrugation.lean`: Remove unused `FirstCountableTopology` and `LocallyCompactSpace` from `c0_small_on`

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@grunweg
grunweg force-pushed the fix-unused-arguments branch from 757fd21 to a8da7c6 Compare November 24, 2025 09:14
grunweg added a commit that referenced this pull request Nov 24, 2025
Cherry-picked from #128 by `kim-em`, thank you!
@grunweg

grunweg commented Nov 24, 2025

Copy link
Copy Markdown
Collaborator

Thanks for your PR! I redid the change to Local/Corrugation properly (just including the variable where appropriate), and then it was easier to just apply the remaining fixes by hand. Thus, all changes from this PR have been incorporated into master; let me close this PR.

@grunweg grunweg closed this Nov 24, 2025
@grunweg
grunweg deleted the fix-unused-arguments branch July 15, 2026 08:53
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.

2 participants