semver: delete unused Sorter/SortDirection and any_range_satisfies (#31545)
Dead-code sweep of `bun_semver`.
`cargo check --workspace` passes.
## Why this code exists
| Item | Zig original | Zig callers | Status |
|---|---|---|---|
| `String::Sorter` + `SortDirection` |
`src/install_types/SemverString.zig:192` — `pub fn Sorter(comptime
direction: enum { asc, desc }) type` (direction is an anonymous inline
enum, not a named type) | 0 — none of the `Sorter` references in
`lockfile.zig`/`npm.zig`/`bun.lock.zig` use this one; they all define
their own local `Sorter` structs | **dead in Zig too** |
| `Range::any_range_satisfies` | `src/semver/SemverRange.zig:33`
(`anyRangeSatisfies`) | 0 | **dead in Zig too** | D
Dylan Conway committed
3e033eac2a6a5858c572ad70c36aa381d3409835
Parent: e85606d
Committed by GitHub <noreply@github.com>
on 5/29/2026, 2:18:10 AM