From b720a2d9aa2adb41c81bf7c31dea7443f1755716 Mon Sep 17 00:00:00 2001 From: Jigsaw Date: Wed, 18 Dec 2024 14:30:02 -0500 Subject: [PATCH] Internal change GitOrigin-RevId: ab91def2af1bafbea7be6cef9a39721b2be12424 --- src/tasks/categorization.ts | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/tasks/categorization.ts b/src/tasks/categorization.ts index 3b935fb..391e36b 100644 --- a/src/tasks/categorization.ts +++ b/src/tasks/categorization.ts @@ -326,24 +326,6 @@ export function findMissingComments( return missingComments; } -/** - * Parses a JSON string representing topics into an array of Topic objects. - * - * @param topicsJsonString The JSON string to parse. - * @returns An array of Topic objects. - * @throws An error if the input is not a valid JSON string representing an array of Topic objects. - */ -export function parseTopicsJson(topicsJsonString: string): Topic[] { - try { - return JSON.parse(topicsJsonString); - } catch (error) { - throw new Error( - `Invalid topics JSON string. Please provide a valid JSON array of Topic objects, - JSON parse error: ${error}` - ); - } -} - /** * Processes the categorized comments, validating them and updating the categorized and uncategorized arrays. *