From c1477659c16b30766b835c3d09c400c1bfeff10a Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Sat, 4 Apr 2026 14:22:16 -0400 Subject: [PATCH] fix: Remove duplicate functions in epub-parsers.ts Clean up duplicate implementations of resolvePath and calculateTotalCharacters that were causing syntax errors. --- web/src/reader/parsers/epub-parsers.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/web/src/reader/parsers/epub-parsers.ts b/web/src/reader/parsers/epub-parsers.ts index f9f5412..d9a4fad 100644 --- a/web/src/reader/parsers/epub-parsers.ts +++ b/web/src/reader/parsers/epub-parsers.ts @@ -265,16 +265,6 @@ async function calculateTotalCharacters(spine: EbookCIF['spine'], resources: Map return total; } -function resolvePath(basePath: string, relativePath: string): string { - const baseDir = basePath.substring(0, basePath.lastIndexOf('/') + 1); - return baseDir + relativePath; -} - } - } - - return total; -} - function generatePageBreaks(totalCharacters: number): number[] { const breaks: number[] = []; const charsPerPage = 1000; // Rough estimate