From 939e0e4639266fc34c346cb76b02a6d6ffb1db02 Mon Sep 17 00:00:00 2001 From: Gergo Magyar Date: Fri, 25 Sep 2026 14:53:54 +0000 Subject: [PATCH] refactor: drop unused notebook code-cell counter The sequential JSON walk already tracks cells without a separate index. Co-authored-by: Cursor --- gitnexus/src/core/ingestion/ipynb-extractor.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/gitnexus/src/core/ingestion/ipynb-extractor.ts b/gitnexus/src/core/ingestion/ipynb-extractor.ts index 65486a4de..21e1d7db1 100644 --- a/gitnexus/src/core/ingestion/ipynb-extractor.ts +++ b/gitnexus/src/core/ingestion/ipynb-extractor.ts @@ -200,7 +200,6 @@ export function extractNotebookPython(content: string): NotebookPythonExtraction const segments: NotebookLineSegment[] = []; let extractLine = 0; let searchFrom = 0; - let codeCellIndex = 0; for (const rawCell of nb.cells) { if (!rawCell || typeof rawCell !== 'object') continue; @@ -210,7 +209,6 @@ export function extractNotebookPython(content: string): NotebookPythonExtraction const located = findNextCodeCellSourceSpan(content, searchFrom); if (!located) return null; searchFrom = located.nextFrom; - codeCellIndex++; const lang = cellLanguage(cell); if (lang !== undefined && !isPythonFamilyLanguage(lang)) { @@ -255,7 +253,6 @@ export function extractNotebookPython(content: string): NotebookPythonExtraction }); } - void codeCellIndex; const pythonSource = chunks.join(''); if (pythonSource.trim().length === 0) return null; return { pythonSource, segments };