From fd2936300fbe569487d2a61ab549ffce2c6bbd75 Mon Sep 17 00:00:00 2001 From: fleetingbytes <7075397+fleetingbytes@users.noreply.github.com> Date: Mon, 30 Nov 2026 01:36:14 +0000 Subject: [PATCH] chore: remove unused priority helpers priority_for_rank and upload_priority were leftovers from earlier Athena priority schemes. Nothing calls them anymore; batches use priorities_for_sorted_paths after sorting by upload_order_key. --- crates/comma-common/src/lib.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/crates/comma-common/src/lib.rs b/crates/comma-common/src/lib.rs index 7df8fe3..3ac7b31 100644 --- a/crates/comma-common/src/lib.rs +++ b/crates/comma-common/src/lib.rs @@ -127,18 +127,6 @@ pub fn priorities_for_sorted_paths(paths: &[String]) -> Vec { priorities } -/// Legacy: sequential priority by rank. Prefer `priorities_for_sorted_paths` -/// so that whole routes stay together. -pub fn priority_for_rank(rank: usize) -> i32 { - (1 + rank as i32).clamp(1, 99) -} - -/// Legacy per-item priority (segment + kind only). Prefer sorting a batch -/// and using `priority_for_rank` when multiple routes are involved. -pub fn upload_priority(segment: i32, kind: FileKind) -> i32 { - (1 + segment * 4 + kind_rank(kind) as i32).clamp(1, 99) -} - /// Extract the segment number from a device path of the form `{route}--{n}/{filename}`. pub fn segment_from_path(path: &str) -> i32 { path.rsplit_once('/')