OH14 — knip: remove unused estimateVotes wrapper and safeMessages

This commit is contained in:
Cursor Agent 2026-08-02 03:51:14 +00:00
parent 516ecaa745
commit ce8bf67828
No known key found for this signature in database
2 changed files with 0 additions and 10 deletions

View file

@ -222,11 +222,6 @@ export const estimateVotesRecord = async (
) )
} }
export const estimateVotes = async (input: EstimateVotesInput) => {
const { payload, actor } = await getCampaignActionContext()
return estimateVotesRecord(payload, actor, input)
}
/** /**
* OH6 — estimate with optional CAS on `estimatedAt`. Without `baseEstimatedAt` * OH6 — estimate with optional CAS on `estimatedAt`. Without `baseEstimatedAt`
* this matches `estimateVotes` (last-write-wins). With a base, a stale token * this matches `estimateVotes` (last-write-wins). With a base, a stale token

View file

@ -100,10 +100,5 @@ export const VOTE_PLEDGE_DECLARE_SAFE_MESSAGES = [
OPS_UPDATED_AT_CONFLICT_MESSAGE, OPS_UPDATED_AT_CONFLICT_MESSAGE,
] as const ] as const
export const VOTE_PLEDGE_ESTIMATE_SAFE_MESSAGES = [
VOTE_PLEDGE_ESTIMATE_STAFF_MESSAGE,
OPS_ESTIMATE_CONFLICT_MESSAGE,
] as const
export type DeclareVotesInput = z.input<typeof declareVotesSchema> export type DeclareVotesInput = z.input<typeof declareVotesSchema>
export type EstimateVotesInput = z.input<typeof estimateVotesSchema> export type EstimateVotesInput = z.input<typeof estimateVotesSchema>