chore: delete dead exports flagged by knip (CI main estava vermelho no drift)

This commit is contained in:
Francisco Ignácio Fontoura Solla 2026-07-30 05:28:41 -03:00
parent f5cc98463d
commit de2d457cf9
5 changed files with 7 additions and 21 deletions

View file

@ -13,7 +13,7 @@ import {
export const CAMPAIGN_LONG_PRESS_MS = 450 export const CAMPAIGN_LONG_PRESS_MS = 450
const CAMPAIGN_LONG_PRESS_SLOP_PX = 10 const CAMPAIGN_LONG_PRESS_SLOP_PX = 10
export type CampaignLongPressPointerHandlers = { type CampaignLongPressPointerHandlers = {
onPointerDown: (event: PointerEvent) => void onPointerDown: (event: PointerEvent) => void
onPointerMove: (event: PointerEvent) => void onPointerMove: (event: PointerEvent) => void
onPointerUp: (event: PointerEvent) => void onPointerUp: (event: PointerEvent) => void

View file

@ -28,7 +28,7 @@ export const WIZARD_MUNICIPALITY_SEARCH_EMPTY = 'Nenhum município encontrado.'
export const WIZARD_VOTES_SAVED_MESSAGE = 'Votos estimados atualizados.' as const export const WIZARD_VOTES_SAVED_MESSAGE = 'Votos estimados atualizados.' as const
export const WIZARD_VOTES_NEXT_FLOW_PLACEHOLDER = const WIZARD_VOTES_NEXT_FLOW_PLACEHOLDER =
'Próximo passo deste fluxo (sinal, tendência ou resumo) em breve.' as const 'Próximo passo deste fluxo (sinal, tendência ou resumo) em breve.' as const
export const WIZARD_VOTES_FINAL_CTA_LABEL = 'Salvar estimativas →' as const export const WIZARD_VOTES_FINAL_CTA_LABEL = 'Salvar estimativas →' as const

View file

@ -1,5 +1,5 @@
/** Mirrors `p-4` / `md:p-6` on `campanha/(app)/layout.tsx` for full-bleed hit rows. */ /** Mirrors `p-4` / `md:p-6` on `campanha/(app)/layout.tsx` for full-bleed hit rows. */
export const HOME_SEARCH_HIT_BLEED_CLASS = '-mx-4 px-4 md:-mx-6 md:px-6' const HOME_SEARCH_HIT_BLEED_CLASS = '-mx-4 px-4 md:-mx-6 md:px-6'
export const HOME_SEARCH_HIT_ROW_WRAPPER_CLASS = `${HOME_SEARCH_HIT_BLEED_CLASS} hover:bg-muted/60 focus-within:bg-muted/60` export const HOME_SEARCH_HIT_ROW_WRAPPER_CLASS = `${HOME_SEARCH_HIT_BLEED_CLASS} hover:bg-muted/60 focus-within:bg-muted/60`

View file

@ -53,7 +53,7 @@ type NearestInScope = {
distanceKm: number distanceKm: number
} }
export type InScopeMunicipalityMatch = 'municipality' | 'zoneContainment' | 'nearestZone' type InScopeMunicipalityMatch = 'municipality' | 'zoneContainment' | 'nearestZone'
export type NearbyMunicipalityResolution = export type NearbyMunicipalityResolution =
/** The point falls inside a município the actor can open. */ /** The point falls inside a município the actor can open. */
@ -190,7 +190,7 @@ export const featureCentroid = (feature: PolygonalFeature): GeoPoint => {
* not by this scan's order: the mesh is TopoJSON-derived, so neighbours share * not by this scan's order: the mesh is TopoJSON-derived, so neighbours share
* numerically identical arcs and never overlap. * numerically identical arcs and never overlap.
*/ */
export const findContainingFeature = <F extends PolygonalFeature>( const findContainingFeature = <F extends PolygonalFeature>(
features: readonly F[], features: readonly F[],
point: GeoPoint, point: GeoPoint,
): F | undefined => features.find((feature) => featureContainsPoint(feature, point)) ): F | undefined => features.find((feature) => featureContainsPoint(feature, point))
@ -204,13 +204,13 @@ export const findContainingMunicipality = (
* Past this, "o mais próximo na sua carteira" stops being a shortcut and starts * Past this, "o mais próximo na sua carteira" stops being a shortcut and starts
* being noise — an advisor in Salvador does not need a link to Barreiras. * being noise — an advisor in Salvador does not need a link to Barreiras.
*/ */
export const NEAREST_IN_SCOPE_MAX_KM = 150 const NEAREST_IN_SCOPE_MAX_KM = 150
/** /**
* When the point is inside Salvador's municipal polygon but outside every ZE * When the point is inside Salvador's municipal polygon but outside every ZE
* polygon, only zones within this radius are offered as a direct link. * polygon, only zones within this radius are offered as a direct link.
*/ */
export const NEAREST_ZONE_MAX_KM = 30 const NEAREST_ZONE_MAX_KM = 30
const findNearestInScope = ( const findNearestInScope = (
getMunicipalityFeature: MunicipalityGeometryLookup['getMunicipalityFeature'], getMunicipalityFeature: MunicipalityGeometryLookup['getMunicipalityFeature'],

View file

@ -368,20 +368,6 @@ export const campoFederalVotesByCityZoneFromFederalSlice = (
return votes return votes
} }
/**
* cityCode:zone → sum of nominal deputado-federal T1 votes for campo parties
* (E8 "share intracampo"). One DB scan via the federal nominal slice.
*/
export const loadCampoFederalVotesByCityZone = async (
payload: Payload,
user: ElectionReader,
{ year }: { year: number },
): Promise<Map<string, number>> => {
assertCanReadElectionData(user)
const slice = await loadFederalVotesByCityZoneAndCandidate(payload, user, { year })
return campoFederalVotesByCityZoneFromFederalSlice(slice, year)
}
/** Folds `loadFederalVotesByCityZoneAndCandidate` over one municipality's cityCode×zones. */ /** Folds `loadFederalVotesByCityZoneAndCandidate` over one municipality's cityCode×zones. */
export const sumCandidateVotesForGeography = ( export const sumCandidateVotesForGeography = (
votesByCityZoneAndCandidate: Map<string, Map<number, FederalNominalVoteCell>>, votesByCityZoneAndCandidate: Map<string, Map<number, FederalNominalVoteCell>>,