Skip to content

Commit dbb04ab

Browse files
committed
remove unused code
1 parent 927fc8e commit dbb04ab

1 file changed

Lines changed: 0 additions & 29 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/tool-input.tsx

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -180,20 +180,6 @@ function resolveCustomToolFromReference(
180180
return null
181181
}
182182

183-
/**
184-
* Checks if a stored custom tool uses the reference-only format.
185-
*
186-
* @remarks
187-
* Reference-only format means the tool has a customToolId but no inline code/schema,
188-
* requiring resolution from the database at runtime.
189-
*
190-
* @param storedTool - The stored tool to check
191-
* @returns `true` if the tool is a reference-only custom tool, `false` otherwise
192-
*/
193-
function isCustomToolReference(storedTool: StoredTool): boolean {
194-
return storedTool.type === 'custom-tool' && !!storedTool.customToolId && !storedTool.code
195-
}
196-
197183
/**
198184
* Generic sync wrapper that synchronizes store values with local component state.
199185
*
@@ -1155,21 +1141,6 @@ export const ToolInput = memo(function ToolInput({
11551141
return filterBlocks(allToolBlocks)
11561142
}, [filterBlocks])
11571143

1158-
const customFilter = useCallback((value: string, search: string) => {
1159-
if (!search.trim()) return 1
1160-
1161-
const normalizedValue = value.toLowerCase()
1162-
const normalizedSearch = search.toLowerCase()
1163-
1164-
if (normalizedValue === normalizedSearch) return 1
1165-
1166-
if (normalizedValue.startsWith(normalizedSearch)) return 0.8
1167-
1168-
if (normalizedValue.includes(normalizedSearch)) return 0.6
1169-
1170-
return 0
1171-
}, [])
1172-
11731144
const hasBackfilledRef = useRef(false)
11741145
useEffect(() => {
11751146
if (

0 commit comments

Comments
 (0)