fix: remove unused functions and enable compiler warnings#2
Conversation
This commit addresses all compiler warnings by: 1. **Enabling warnings globally**: Updated both package configurations (`src/moon.pkg.json` and `src/algorithms/moon.pkg.json`) to enable all warnings with `+a` instead of suppressing specific warnings with `-1-2-3-5-6-7-8-10-29`. 2. **Removing unused functions**: Eliminated three unused private functions from the Range module: - `Range::intersect()` - Creates intersection of two ranges - `Range::union()` - Creates union of two ranges - `Range::split_at()` - Splits range at given point These functions were well-documented utility methods but were not being used anywhere in the codebase, causing compiler warnings. They can be added back later if needed. **Testing**: All existing tests continue to pass, ensuring no functionality was broken by these changes. **Build**: Project now compiles cleanly with all warnings enabled.
Type definition change from 'type' to 'struct' may alter API semanticsCategory Aggressive warning enablement without gradual migration strategyCategory Removed utility functions without deprecation strategyCategory |
Note
This PR was made by an LLM agent.
This commit addresses all compiler warnings by:
Enabling warnings globally: Updated both package configurations
(
src/moon.pkg.jsonandsrc/algorithms/moon.pkg.json) to enableall warnings with
+ainstead of suppressing specific warningswith
-1-2-3-5-6-7-8-10-29.Removing unused functions: Eliminated three unused private
functions from the Range module:
Range::intersect()- Creates intersection of two rangesRange::union()- Creates union of two rangesRange::split_at()- Splits range at given pointThese functions were well-documented utility methods but were not
being used anywhere in the codebase, causing compiler warnings.
They can be added back later if needed.
Testing: All existing tests continue to pass, ensuring no
functionality was broken by these changes.
Build: Project now compiles cleanly with all warnings enabled.