From 6b9084772a9ff3b58f53ec8c9dfe75924d3feda6 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Mon, 10 Apr 2023 17:35:42 +0200 Subject: [PATCH] cleanup --- src/index.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/index.ts b/src/index.ts index 72f75d7..dfd1d7a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -74,21 +74,8 @@ export class TOC { Version: string | null = null xTags: Record = {} files: string[] = [] - - /* - toString(){ - var result: string[] = []; - for(const tag in toc.allTags) { - result.push(`${TOC_PREFIX_TAG}${tag}${TOC_TAG_SEPARATOR} ${toc.allTags[tag]}`) - } - result.concat(this.files) - return result.join('\n'); - }; - */ } -// import { open } from 'fs/promises'; -// const file = await open('./words.txt', 'r'); export const parse = async function(file: FileHandle, strict = true) { const result = new TOC(); const allTags: Record = {}