From 8b65a52035a2c51c14b45308bbf1bc492dee09a6 Mon Sep 17 00:00:00 2001 From: Nick Playfair <842413+nplayfair@users.noreply.github.com> Date: Thu, 12 Jun 2025 19:08:46 +0100 Subject: [PATCH] Remove some unused function plans --- src/index.ts | 7 ------- src/utils.ts | 6 ------ 2 files changed, 13 deletions(-) diff --git a/src/index.ts b/src/index.ts index 1da67e5..9260d79 100644 --- a/src/index.ts +++ b/src/index.ts @@ -58,13 +58,6 @@ async function createTable() { input.addEventListener('change', handleUpload); /* TODO -// Format the HTML nicely and output to a pre code block -function displayMarkup() { - const tableCode = document.querySelector('table')!.outerHTML; - const markup = document.getElementById('markup') as HTMLElement; - markup.innerText = beautify(tableCode); -} - // Create a JSON object for Contentful function makeJSON(csvString: string) { csv({ diff --git a/src/utils.ts b/src/utils.ts index e7b17e5..7ec114d 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -8,12 +8,6 @@ export async function printHTMLtable( codeBlock.innerText = prettify(table.outerHTML); } -// no longer needed -// export function isJunk(element: Part): boolean { -// // Returns true if element is in the rejected list -// return rejectedParts.includes(element.Part); -// } - // TODO /*