Skip to content

Commit 91c3c5b

Browse files
committed
Dropped an unused helper from the Android push payload module
androidActivityHero sorted the activity list by phase and returned the first row. Nothing called it, and androidActivityData right below already does that same sort inline and picks rows[0] as the hero, so the helper was a leftover from when that logic was extracted and then folded back. Removing it leaves one copy of the priority sort instead of two, so a change to phase ordering only has to land in one place. Not verified locally: this worktree has no node_modules, so the relay test suite could not run. The change only deletes a symbol with zero references repo-wide. Commit made by space-bunny in opencode on behalf of Kriday.
1 parent 37de6cb commit 91c3c5b

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎infra/relay/src/agentActivity/fcmPayloads.ts‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ import {
55
} from "./agentActivityAggregate.ts";
66
import { agentActivityExpiresAt } from "./agentActivityPayloads.ts";
77

8-
export function androidActivityHero(aggregate: RelayAgentActivityAggregateState) {
9-
return [...aggregate.activities].sort(
10-
(a, b) => activityPhasePriority(a.phase) - activityPhasePriority(b.phase),
11-
)[0];
12-
}
13-
148
/** Android focuses the priority thread while retaining rows for older clients. */
159
export function androidActivityData(aggregate: RelayAgentActivityAggregateState | null) {
1610
const rows = [...(aggregate?.activities ?? [])].sort(

0 commit comments

Comments
 (0)