refactor: remove dead flow rawscript helper

This commit is contained in:
centdix
2026-04-17 11:39:08 +02:00
parent 251c3cf793
commit e22d7f3edb
2 changed files with 2 additions and 18 deletions
@@ -1084,10 +1084,7 @@ export const flowTools: Tool<FlowAIChatHelpers>[] = [
}
toolCallbacks.setToolStatus(toolId, {
content:
parsedModule === null
? 'Preprocessor module removed'
: 'Preprocessor module updated',
content: parsedModule === null ? 'Preprocessor module removed' : 'Preprocessor module updated',
result: 'Success'
})
return parsedModule === null
@@ -1123,8 +1120,7 @@ export const flowTools: Tool<FlowAIChatHelpers>[] = [
}
toolCallbacks.setToolStatus(toolId, {
content:
parsedModule === null ? 'Failure module removed' : 'Failure module updated',
content: parsedModule === null ? 'Failure module removed' : 'Failure module updated',
result: 'Success'
})
return parsedModule === null
@@ -35,18 +35,6 @@ export function getFlowModuleById(flow: FlowLike | undefined, id: string): FlowM
return dfs(id, flow as OpenFlow, false)[0]
}
export function getRawScriptModuleById(
flow: FlowLike | undefined,
id: string
): (FlowModule & { value: RawScript }) | undefined {
const module = getFlowModuleById(flow, id)
if (!module || module.value.type !== 'rawscript') {
return undefined
}
return module as FlowModule & { value: RawScript }
}
export function getMutableRawScriptModuleById(
flow: FlowLike | undefined,
id: string