From e11ae5db62c9969c141c406efed67f97ee10e0ee Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Sun, 23 Aug 2026 16:26:18 -0700 Subject: [PATCH] refactor: delete code nothing reaches MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `biome.json:101-102` turns off `noUnusedVariables` and `noUnusedFunctionParameters`, so none of this was ever going to be flagged. Everything here was confirmed by grepping the symbol across `apps/` and `packages/` and finding only its own declaration; `tsc --noEmit` then proves each deleted binding was unread, since a read one fails to compile. - Eleven module-scope loggers that nothing logs through, with the now-orphaned `createLogger` import each left behind. - `execute-platform-context-use-case.ts` — the whole file. No importer, no barrel, and neither export is named anywhere. - `routeToolCall` and, once it goes, `ToolRoute` and `ToolRouteTarget` with it. The catalog accessors around them stay live. - `processPastChat`, superseded by `processPastChatFromDb`. It carried the last `boundary-raw-fetch` exemption in the file. - `withMessageId`, pasted into three server tools and called in none. - Write-only locals: `activeSubagent` (assigned twice, read never — the scoped maps replaced it), `resolvedReadPath`, `workflowPath`, and `workflow` in an execution-core destructure. - `ACCEPTED_AUDIO_TYPES` / `ACCEPTED_VIDEO_TYPES`, never wired to an accept attribute the way their live sibling is. - Unused `catch` bindings in `error-extractors.ts` and `defaults.ts`. `diff-engine.ts` drops a `proposedSubKeys.includes(key)` guard that the `!proposedSub` check three lines down already covers: a key absent from the proposed block reads back `undefined` there, and so does a key present with a nullish value. Same answer on every input, without the O(n) scan per iteration. --- .../execute-platform-context-use-case.ts | 40 ------------------- .../lib/copilot/chat/effective-transcript.ts | 7 +--- apps/sim/lib/copilot/chat/process-contents.ts | 40 ------------------- .../lib/copilot/request/lifecycle/headless.ts | 3 -- apps/sim/lib/copilot/tool-executor/router.ts | 14 ------- apps/sim/lib/copilot/tools/handlers/vfs.ts | 2 - .../tools/handlers/workflow/queries.ts | 3 -- .../files/download-to-workspace-file.ts | 3 -- .../tools/server/image/generate-image.ts | 3 -- .../copilot/tools/server/table/user-table.ts | 3 -- apps/sim/lib/copilot/vfs/workspace-vfs.ts | 1 - apps/sim/lib/uploads/utils/validation.ts | 2 - apps/sim/lib/workflows/defaults.ts | 4 +- apps/sim/lib/workflows/diff/diff-engine.ts | 2 +- .../lib/workflows/executor/execution-core.ts | 2 +- apps/sim/tools/error-extractors.ts | 4 +- apps/sim/tools/utils.ts | 3 -- apps/sim/triggers/gmail/poller.ts | 3 -- apps/sim/triggers/hubspot/poller.ts | 3 -- apps/sim/triggers/imap/poller.ts | 3 -- apps/sim/triggers/outlook/poller.ts | 3 -- .../webflow/collection_item_changed.ts | 3 -- .../webflow/collection_item_created.ts | 3 -- .../webflow/collection_item_deleted.ts | 3 -- apps/sim/triggers/webflow/form_submission.ts | 3 -- 25 files changed, 8 insertions(+), 152 deletions(-) delete mode 100644 apps/sim/lib/copilot/application/execute-platform-context-use-case.ts diff --git a/apps/sim/lib/copilot/application/execute-platform-context-use-case.ts b/apps/sim/lib/copilot/application/execute-platform-context-use-case.ts deleted file mode 100644 index b891ea294ce..00000000000 --- a/apps/sim/lib/copilot/application/execute-platform-context-use-case.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { createCopilotApplicationAdapter } from '@/lib/copilot/application/application-adapter' -import { messageForCopilotApplicationError } from '@/lib/copilot/application/error' -import { - COPILOT_APPLICATION_DELEGATION_TTL_MS, - type CopilotExecutionContext, - InteractiveCopilotExecutionRequiredError, - requireInteractiveCopilotExecutionContext, -} from '@/lib/copilot/auth/application-delegation' -import type { OperationUseCase } from '@/lib/core/application' -import { platformContextDelegationPolicy } from '@/lib/platform-context/application/authorization' -import { - type PlatformContextOperation, - platformContextOperations, -} from '@/lib/platform-context/application/operations' - -const executePlatformContextUseCase = createCopilotApplicationAdapter({ - domain: 'platform context', - delegation: { - audience: platformContextDelegationPolicy.audience, - ttlMs: COPILOT_APPLICATION_DELEGATION_TTL_MS, - createDelegationId: (context) => `copilot-tool:${context.toolCallId}`, - }, - operations: platformContextOperations, -}) - -/** Enters a live platform-context operation only from a trusted interactive Copilot lifecycle. */ -export function executeCopilotPlatformContextUseCase( - context: CopilotExecutionContext | undefined, - useCase: OperationUseCase, - input: I -): Promise { - const trustedContext = requireInteractiveCopilotExecutionContext(context) - return executePlatformContextUseCase(trustedContext, useCase, input) -} - -/** Projects only actionable authorization failures into live platform-context tool output. */ -export function messageForCopilotPlatformContextError(error: unknown): string { - if (error instanceof InteractiveCopilotExecutionRequiredError) return error.message - return messageForCopilotApplicationError(error) -} diff --git a/apps/sim/lib/copilot/chat/effective-transcript.ts b/apps/sim/lib/copilot/chat/effective-transcript.ts index 97527da2c78..fd1e4423590 100644 --- a/apps/sim/lib/copilot/chat/effective-transcript.ts +++ b/apps/sim/lib/copilot/chat/effective-transcript.ts @@ -134,7 +134,6 @@ function buildLiveAssistantMessage(params: { const toolIndexById = new Map() const subagentByParentToolCallId = new Map() const subagentBySpanId = new Map() - let activeSubagent: string | undefined let activeSubagentParentToolCallId: string | undefined const activeCompactionIdByLane = new Map() let runningText = '' @@ -143,8 +142,8 @@ function buildLiveAssistantMessage(params: { let lastTimestamp: string | undefined // Scope-only resolution (mirrors the live browser stream loop): with - // concurrent subagents the legacy activeSubagent fallback / name-match scan - // would mis-attribute interleaved replayed events to the wrong lane. + // concurrent subagents the legacy name-match scan would mis-attribute + // interleaved replayed events to the wrong lane. const resolveScopedSubagent = ( agentId: string | undefined, parentToolCallId: string | undefined, @@ -404,7 +403,6 @@ function buildLiveAssistantMessage(params: { if (parentToolCallId) { subagentByParentToolCallId.set(parentToolCallId, name) } - activeSubagent = name activeSubagentParentToolCallId = parentToolCallId blocks.push({ type: MothershipStreamV1EventType.span, @@ -431,7 +429,6 @@ function buildLiveAssistantMessage(params: { // or an unscoped end — never by agent name, which would tear down a // concurrent same-name sibling that is still open. if (!parentToolCallId || parentToolCallId === activeSubagentParentToolCallId) { - activeSubagent = undefined activeSubagentParentToolCallId = undefined } blocks.push({ diff --git a/apps/sim/lib/copilot/chat/process-contents.ts b/apps/sim/lib/copilot/chat/process-contents.ts index faa77afa337..b719abbe917 100644 --- a/apps/sim/lib/copilot/chat/process-contents.ts +++ b/apps/sim/lib/copilot/chat/process-contents.ts @@ -558,46 +558,6 @@ async function processWorkflowFromDb( } } -async function processPastChat(chatId: string, tagOverride?: string): Promise { - try { - // boundary-raw-fetch: GET /api/mothership/chat?chatId=... has no defineRouteContract; - // the route forwards to the copilot chat handler and emits a free-form chat envelope - // that isn't covered by mothershipChatGetQuerySchema or copilotChatGetContract. - const resp = await fetch(`/api/mothership/chat?chatId=${encodeURIComponent(chatId)}`) - if (!resp.ok) { - logger.error('Failed to fetch past chat', { chatId, status: resp.status }) - return null - } - const data = await resp.json() - const messages = Array.isArray(data?.chat?.messages) ? data.chat.messages : [] - const content = messages - .map((m: any) => { - const role = m.role || 'user' - // Prefer contentBlocks text if present (joins text blocks), else use content - let text = '' - if (Array.isArray(m.contentBlocks) && m.contentBlocks.length > 0) { - text = m.contentBlocks - .filter((b: any) => b?.type === 'text') - .map((b: any) => String(b.content || '')) - .join('') - .trim() - } - if (!text && typeof m.content === 'string') text = m.content - return `${role}: ${text}`.trim() - }) - .filter((s: string) => s.length > 0) - .join('\n') - logger.info('Processed past_chat context via API', { chatId, length: content.length }) - - return { type: 'past_chat', tag: tagOverride || '@', content } - } catch (error) { - logger.error('Error processing past chat', { chatId, error }) - return null - } -} - -// Back-compat alias; used by processContexts above - async function processKnowledgeFromDb( knowledgeBaseId: string, userId: string | undefined, diff --git a/apps/sim/lib/copilot/request/lifecycle/headless.ts b/apps/sim/lib/copilot/request/lifecycle/headless.ts index 654c050b2a6..6b9a878bf34 100644 --- a/apps/sim/lib/copilot/request/lifecycle/headless.ts +++ b/apps/sim/lib/copilot/request/lifecycle/headless.ts @@ -1,4 +1,3 @@ -import { createLogger } from '@sim/logger' import { generateId } from '@sim/utils/id' import type { RequestTraceV1Outcome as RequestTraceOutcome } from '@/lib/copilot/generated/request-trace-v1' import { @@ -12,8 +11,6 @@ import { withCopilotOtelContext } from '@/lib/copilot/request/otel' import { TraceCollector } from '@/lib/copilot/request/trace' import type { OrchestratorResult } from '@/lib/copilot/request/types' -const logger = createLogger('CopilotHeadlessLifecycle') - export async function runHeadlessCopilotLifecycle( requestPayload: Record, options: CopilotLifecycleOptions diff --git a/apps/sim/lib/copilot/tool-executor/router.ts b/apps/sim/lib/copilot/tool-executor/router.ts index fede5c200f9..eee305eefee 100644 --- a/apps/sim/lib/copilot/tool-executor/router.ts +++ b/apps/sim/lib/copilot/tool-executor/router.ts @@ -1,7 +1,5 @@ import { TOOL_CATALOG, type ToolCatalogEntry } from '@/lib/copilot/generated/tool-catalog-v1' -export type ToolRouteTarget = ToolCatalogEntry['route'] - export function isToolInCatalog(toolId: string): boolean { return toolId in TOOL_CATALOG } @@ -10,18 +8,6 @@ export function getToolEntry(toolId: string): ToolCatalogEntry | undefined { return TOOL_CATALOG[toolId] } -export type ToolRoute = { - route: ToolRouteTarget - mode: ToolCatalogEntry['mode'] - subagentId?: string -} - -export function routeToolCall(toolId: string): ToolRoute | null { - const entry = getToolEntry(toolId) - if (!entry) return null - return { route: entry.route, mode: entry.mode, subagentId: entry.subagentId } -} - export function isSimExecuted(toolId: string): boolean { return getToolEntry(toolId)?.route === 'sim' } diff --git a/apps/sim/lib/copilot/tools/handlers/vfs.ts b/apps/sim/lib/copilot/tools/handlers/vfs.ts index 41cdcd2ae75..2d83c04916a 100644 --- a/apps/sim/lib/copilot/tools/handlers/vfs.ts +++ b/apps/sim/lib/copilot/tools/handlers/vfs.ts @@ -564,7 +564,6 @@ export async function executeVfsRead( } } - let resolvedReadPath = path let result = await vfs.read(path, offset, limit) if (!result) { // Same name, wrong encoding (spaces instead of %20) is the most common @@ -576,7 +575,6 @@ export async function executeVfsRead( requested: path, resolved: decodedEquivalent, }) - resolvedReadPath = decodedEquivalent result = await vfs.read(decodedEquivalent, offset, limit) } } diff --git a/apps/sim/lib/copilot/tools/handlers/workflow/queries.ts b/apps/sim/lib/copilot/tools/handlers/workflow/queries.ts index 2129fc747bc..88a1ca0a5a8 100644 --- a/apps/sim/lib/copilot/tools/handlers/workflow/queries.ts +++ b/apps/sim/lib/copilot/tools/handlers/workflow/queries.ts @@ -1,4 +1,3 @@ -import { createLogger } from '@sim/logger' import { executeCopilotCustomToolUseCase } from '@/lib/copilot/application/execute-custom-tool-use-case' import { executeCopilotFileUseCase } from '@/lib/copilot/application/execute-file-use-case' import { executeCopilotMcpServerUseCase } from '@/lib/copilot/application/execute-mcp-server-use-case' @@ -26,8 +25,6 @@ import type { GetWorkflowRunOptionsParams, } from '../param-types' -const logger = createLogger('WorkflowQueries') - export async function executeGetWorkflowRunOptions( params: GetWorkflowRunOptionsParams, context: ExecutionContext diff --git a/apps/sim/lib/copilot/tools/server/files/download-to-workspace-file.ts b/apps/sim/lib/copilot/tools/server/files/download-to-workspace-file.ts index e87e861f9a1..71118e7d390 100644 --- a/apps/sim/lib/copilot/tools/server/files/download-to-workspace-file.ts +++ b/apps/sim/lib/copilot/tools/server/files/download-to-workspace-file.ts @@ -145,9 +145,6 @@ export const downloadToWorkspaceFileServerTool: BaseServerTool< params: DownloadToWorkspaceFileArgs, context?: ServerToolContext ): Promise { - const withMessageId = (message: string) => - context?.messageId ? `${message} [messageId:${context.messageId}]` : message - if (!context?.userId) { throw new Error('Authentication required') } diff --git a/apps/sim/lib/copilot/tools/server/image/generate-image.ts b/apps/sim/lib/copilot/tools/server/image/generate-image.ts index f9f5be655e3..3e572ed6427 100644 --- a/apps/sim/lib/copilot/tools/server/image/generate-image.ts +++ b/apps/sim/lib/copilot/tools/server/image/generate-image.ts @@ -65,9 +65,6 @@ export const generateImageServerTool: BaseServerTool { - const withMessageId = (message: string) => - context?.messageId ? `${message} [messageId:${context.messageId}]` : message - if (!context?.userId) { throw new Error('Authentication required') } diff --git a/apps/sim/lib/copilot/tools/server/table/user-table.ts b/apps/sim/lib/copilot/tools/server/table/user-table.ts index f6ce6df1cb5..ac621ad69cb 100644 --- a/apps/sim/lib/copilot/tools/server/table/user-table.ts +++ b/apps/sim/lib/copilot/tools/server/table/user-table.ts @@ -164,9 +164,6 @@ function mergeViewPredicate( export const userTableServerTool: BaseServerTool = { name: UserTable.id, async execute(params: UserTableArgs, context?: ServerToolContext): Promise { - const withMessageId = (message: string) => - context?.messageId ? `${message} [messageId:${context.messageId}]` : message - if (!context?.userId) { logger.error('Unauthorized attempt to access user table - no authenticated user context') throw new Error('Authentication required') diff --git a/apps/sim/lib/copilot/vfs/workspace-vfs.ts b/apps/sim/lib/copilot/vfs/workspace-vfs.ts index c2bcd5c0237..b5f2c0cc6ea 100644 --- a/apps/sim/lib/copilot/vfs/workspace-vfs.ts +++ b/apps/sim/lib/copilot/vfs/workspace-vfs.ts @@ -1879,7 +1879,6 @@ export class WorkspaceVFS { } const folderPath = wf.folderId ? folderPaths.get(wf.folderId) : null const prefix = `${canonicalWorkflowVfsDir({ name: wf.name, folderPath })}/` - const workflowPath = prefix.replace(/\/$/, '') const inheritedFolderLock = wf.folderId ? lockedFolderIds.has(wf.folderId) : false this.files.set( diff --git a/apps/sim/lib/uploads/utils/validation.ts b/apps/sim/lib/uploads/utils/validation.ts index e9b21adb814..a6bbd26681b 100644 --- a/apps/sim/lib/uploads/utils/validation.ts +++ b/apps/sim/lib/uploads/utils/validation.ts @@ -188,8 +188,6 @@ export const SUPPORTED_VIDEO_MIME_TYPES: Record `.${ext}`) export const ACCEPT_ATTRIBUTE = [...ACCEPTED_FILE_TYPES, ...ACCEPTED_FILE_EXTENSIONS].join(',') diff --git a/apps/sim/lib/workflows/defaults.ts b/apps/sim/lib/workflows/defaults.ts index 29407ab1eeb..4293a8daa54 100644 --- a/apps/sim/lib/workflows/defaults.ts +++ b/apps/sim/lib/workflows/defaults.ts @@ -30,8 +30,8 @@ function resolveInitialValue(subBlock: SubBlockConfig): unknown { if (typeof subBlock.value === 'function') { try { return cloneDefaultValue(subBlock.value({})) - } catch (error) { - // Ignore resolution errors and fall back to default/null values + } catch { + /* Ignore resolution errors and fall back to default/null values. */ } } diff --git a/apps/sim/lib/workflows/diff/diff-engine.ts b/apps/sim/lib/workflows/diff/diff-engine.ts index 52b8bb8210f..024bbfbb6f4 100644 --- a/apps/sim/lib/workflows/diff/diff-engine.ts +++ b/apps/sim/lib/workflows/diff/diff-engine.ts @@ -54,9 +54,9 @@ function hasBlockChanged(currentBlock: BlockState, proposedBlock: BlockState): b if (currentSubKeys.length !== proposedSubKeys.length) return true for (const key of currentSubKeys) { - if (!proposedSubKeys.includes(key)) return true const currentSub = currentBlock.subBlocks[key] const proposedSub = proposedBlock.subBlocks?.[key] + /* Also covers a key missing from `proposedBlock`, which reads back undefined. */ if (!proposedSub) return true if (JSON.stringify(currentSub.value) !== JSON.stringify(proposedSub.value)) return true } diff --git a/apps/sim/lib/workflows/executor/execution-core.ts b/apps/sim/lib/workflows/executor/execution-core.ts index 81295f679d5..e842162d095 100644 --- a/apps/sim/lib/workflows/executor/execution-core.ts +++ b/apps/sim/lib/workflows/executor/execution-core.ts @@ -396,7 +396,7 @@ async function executeWorkflowCoreImpl( runFromBlock, } = options loggingSession.setExecutionDeadlineAt(getExecutionDeadlineAt(abortSignal)) - const { metadata, workflow, input, workflowVariables, selectedOutputs } = snapshot + const { metadata, input, workflowVariables, selectedOutputs } = snapshot const { requestId, workflowId, userId, triggerType, executionId, triggerBlockId, useDraftState } = metadata const { onBlockStart, onBlockComplete, onStream, onChildWorkflowInstanceReady } = callbacks diff --git a/apps/sim/tools/error-extractors.ts b/apps/sim/tools/error-extractors.ts index e9dd19feb08..449525e9f6b 100644 --- a/apps/sim/tools/error-extractors.ts +++ b/apps/sim/tools/error-extractors.ts @@ -532,7 +532,7 @@ export function extractErrorMessageWithId( if (message?.trim()) { return message } - } catch (error) {} + } catch {} return `Request failed with status ${errorInfo?.status || 'unknown'}` } @@ -564,7 +564,7 @@ export function extractErrorMessage(errorInfo?: ErrorInfo, extractorId?: string) if (message?.trim()) { return message } - } catch (error) {} + } catch {} } return `Request failed with status ${errorInfo?.status || 'unknown'}` diff --git a/apps/sim/tools/utils.ts b/apps/sim/tools/utils.ts index c3e98dfe5d2..de33c4ef9f1 100644 --- a/apps/sim/tools/utils.ts +++ b/apps/sim/tools/utils.ts @@ -1,4 +1,3 @@ -import { createLogger } from '@sim/logger' import { stripVersionSuffix } from '@sim/utils/string' import { normalizeRecord, @@ -12,8 +11,6 @@ import { environmentKeys } from '@/hooks/queries/environment' import { tools } from '@/tools/registry' import type { ToolConfig } from '@/tools/types' -const logger = createLogger('ToolsUtils') - /** * Strips version suffix (_v2, _v3, etc.) from a tool ID or name. * Re-exported from the canonical `@sim/utils/string` helper so existing diff --git a/apps/sim/triggers/gmail/poller.ts b/apps/sim/triggers/gmail/poller.ts index b9d868294b7..07ce2ee97ae 100644 --- a/apps/sim/triggers/gmail/poller.ts +++ b/apps/sim/triggers/gmail/poller.ts @@ -1,9 +1,6 @@ -import { createLogger } from '@sim/logger' import { GmailIcon } from '@/components/icons' import type { TriggerConfig } from '@/triggers/types' -const logger = createLogger('GmailPollingTrigger') - export const gmailPollingTrigger: TriggerConfig = { id: 'gmail_poller', name: 'Gmail Email Trigger', diff --git a/apps/sim/triggers/hubspot/poller.ts b/apps/sim/triggers/hubspot/poller.ts index b30847d3512..a0375d93f76 100644 --- a/apps/sim/triggers/hubspot/poller.ts +++ b/apps/sim/triggers/hubspot/poller.ts @@ -1,10 +1,7 @@ -import { createLogger } from '@sim/logger' import { HubspotIcon } from '@/components/icons' import { getScopesForService } from '@/lib/oauth/utils' import type { TriggerConfig } from '@/triggers/types' -const logger = createLogger('HubSpotPollingTrigger') - export const hubspotPollingTrigger: TriggerConfig = { id: 'hubspot_poller', name: 'HubSpot CRM Trigger', diff --git a/apps/sim/triggers/imap/poller.ts b/apps/sim/triggers/imap/poller.ts index 2f96e2528eb..32c8034677f 100644 --- a/apps/sim/triggers/imap/poller.ts +++ b/apps/sim/triggers/imap/poller.ts @@ -1,9 +1,6 @@ -import { createLogger } from '@sim/logger' import { MailServerIcon } from '@/components/icons' import type { TriggerConfig } from '@/triggers/types' -const logger = createLogger('ImapPollingTrigger') - export const imapPollingTrigger: TriggerConfig = { id: 'imap_poller', name: 'IMAP Email Trigger', diff --git a/apps/sim/triggers/outlook/poller.ts b/apps/sim/triggers/outlook/poller.ts index 859524beaa5..3af96484ee4 100644 --- a/apps/sim/triggers/outlook/poller.ts +++ b/apps/sim/triggers/outlook/poller.ts @@ -1,9 +1,6 @@ -import { createLogger } from '@sim/logger' import { OutlookIcon } from '@/components/icons' import type { TriggerConfig } from '@/triggers/types' -const logger = createLogger('OutlookPollingTrigger') - export const outlookPollingTrigger: TriggerConfig = { id: 'outlook_poller', name: 'Outlook Email Trigger', diff --git a/apps/sim/triggers/webflow/collection_item_changed.ts b/apps/sim/triggers/webflow/collection_item_changed.ts index fcb90387e5c..356845a71cc 100644 --- a/apps/sim/triggers/webflow/collection_item_changed.ts +++ b/apps/sim/triggers/webflow/collection_item_changed.ts @@ -1,9 +1,6 @@ -import { createLogger } from '@sim/logger' import { WebflowIcon } from '@/components/icons' import type { TriggerConfig } from '../types' -const logger = createLogger('webflow-collection-item-changed-trigger') - export const webflowCollectionItemChangedTrigger: TriggerConfig = { id: 'webflow_collection_item_changed', name: 'Collection Item Changed', diff --git a/apps/sim/triggers/webflow/collection_item_created.ts b/apps/sim/triggers/webflow/collection_item_created.ts index 8c913c4c002..c2fe717c607 100644 --- a/apps/sim/triggers/webflow/collection_item_created.ts +++ b/apps/sim/triggers/webflow/collection_item_created.ts @@ -1,9 +1,6 @@ -import { createLogger } from '@sim/logger' import { WebflowIcon } from '@/components/icons' import type { TriggerConfig } from '../types' -const logger = createLogger('webflow-collection-item-created-trigger') - export const webflowCollectionItemCreatedTrigger: TriggerConfig = { id: 'webflow_collection_item_created', name: 'Collection Item Created', diff --git a/apps/sim/triggers/webflow/collection_item_deleted.ts b/apps/sim/triggers/webflow/collection_item_deleted.ts index baffaae5a8a..9d98d2f3584 100644 --- a/apps/sim/triggers/webflow/collection_item_deleted.ts +++ b/apps/sim/triggers/webflow/collection_item_deleted.ts @@ -1,9 +1,6 @@ -import { createLogger } from '@sim/logger' import { WebflowIcon } from '@/components/icons' import type { TriggerConfig } from '../types' -const logger = createLogger('webflow-collection-item-deleted-trigger') - export const webflowCollectionItemDeletedTrigger: TriggerConfig = { id: 'webflow_collection_item_deleted', name: 'Collection Item Deleted', diff --git a/apps/sim/triggers/webflow/form_submission.ts b/apps/sim/triggers/webflow/form_submission.ts index 13769147f71..5687f9104a0 100644 --- a/apps/sim/triggers/webflow/form_submission.ts +++ b/apps/sim/triggers/webflow/form_submission.ts @@ -1,9 +1,6 @@ -import { createLogger } from '@sim/logger' import { WebflowIcon } from '@/components/icons' import type { TriggerConfig } from '../types' -const logger = createLogger('webflow-form-submission-trigger') - export const webflowFormSubmissionTrigger: TriggerConfig = { id: 'webflow_form_submission', name: 'Form Submission',