Skip to content

Commit 205fabb

Browse files
refactor: remove unused getCanonicalTools and getToolsByWorkflow functions
Co-authored-by: web <web@cameroncooke.com>
1 parent 01f6a3e commit 205fabb

1 file changed

Lines changed: 0 additions & 26 deletions

File tree

scripts/analysis/tools-analysis.ts

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -518,32 +518,6 @@ export async function getStaticToolAnalysis(): Promise<StaticAnalysisResult> {
518518
};
519519
}
520520

521-
/**
522-
* Get only canonical tools (excluding re-exports) for documentation generation
523-
*/
524-
export async function getCanonicalTools(): Promise<ToolInfo[]> {
525-
const analysis = await getStaticToolAnalysis();
526-
return analysis.tools.filter((tool) => tool.isCanonical);
527-
}
528-
529-
/**
530-
* Get tools grouped by workflow for documentation generation
531-
*/
532-
export async function getToolsByWorkflow(): Promise<Map<string, ToolInfo[]>> {
533-
const analysis = await getStaticToolAnalysis();
534-
const workflowMap = new Map<string, ToolInfo[]>();
535-
536-
for (const workflow of analysis.workflows) {
537-
// Only include canonical tools for documentation
538-
const canonicalTools = workflow.tools.filter((tool) => tool.isCanonical);
539-
if (canonicalTools.length > 0) {
540-
workflowMap.set(workflow.name, canonicalTools);
541-
}
542-
}
543-
544-
return workflowMap;
545-
}
546-
547521
// CLI support - if run directly, perform analysis and output results
548522
if (import.meta.url === `file://${process.argv[1]}`) {
549523
async function main(): Promise<void> {

0 commit comments

Comments
 (0)