From ce8bf67828fa85457a44e8d12ba1b33d019bf74f Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sun, 2 Aug 2026 03:51:14 +0000 Subject: [PATCH] =?UTF-8?q?OH14=20=E2=80=94=20knip:=20remove=20unused=20es?= =?UTF-8?q?timateVotes=20wrapper=20and=20safeMessages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/(campaign)/campanha/actions/votePledge.ts | 5 ----- src/lib/schemas/votePledge.ts | 5 ----- 2 files changed, 10 deletions(-) diff --git a/src/app/(campaign)/campanha/actions/votePledge.ts b/src/app/(campaign)/campanha/actions/votePledge.ts index 8d012c57..ad895cb5 100644 --- a/src/app/(campaign)/campanha/actions/votePledge.ts +++ b/src/app/(campaign)/campanha/actions/votePledge.ts @@ -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` * this matches `estimateVotes` (last-write-wins). With a base, a stale token diff --git a/src/lib/schemas/votePledge.ts b/src/lib/schemas/votePledge.ts index 4379ce2f..8d43c5e1 100644 --- a/src/lib/schemas/votePledge.ts +++ b/src/lib/schemas/votePledge.ts @@ -100,10 +100,5 @@ export const VOTE_PLEDGE_DECLARE_SAFE_MESSAGES = [ OPS_UPDATED_AT_CONFLICT_MESSAGE, ] 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 export type EstimateVotesInput = z.input