From 1ffa8a8fb3e16bd5a3338d18782ddda0c2ffca03 Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Sun, 16 Mar 2025 21:15:00 -0400
Subject: a lot of code cleanup for doc creators templates

---
 .../DataVizBox/DocCreatorMenu/TemplateManager.tsx  | 34 ----------------------
 1 file changed, 34 deletions(-)
 delete mode 100644 src/client/views/nodes/DataVizBox/DocCreatorMenu/TemplateManager.tsx

(limited to 'src/client/views/nodes/DataVizBox/DocCreatorMenu/TemplateManager.tsx')

diff --git a/src/client/views/nodes/DataVizBox/DocCreatorMenu/TemplateManager.tsx b/src/client/views/nodes/DataVizBox/DocCreatorMenu/TemplateManager.tsx
deleted file mode 100644
index 09b4ce029..000000000
--- a/src/client/views/nodes/DataVizBox/DocCreatorMenu/TemplateManager.tsx
+++ /dev/null
@@ -1,34 +0,0 @@
-import { makeAutoObservable } from "mobx";
-import { Col } from "./DocCreatorMenu";
-import { FieldSettings } from "./FieldTypes/Field";
-import { Template } from "./Template";
-
-export class TemplateManager {
-
-    templates: Template[] = [];
-
-    constructor(templateSettings: FieldSettings[]) {
-        makeAutoObservable(this);
-        this.templates = this.initializeTemplates(templateSettings);
-    }
-
-    initializeTemplates = (templateSettings: FieldSettings[]): Template[] => {
-        const initializedTemplates: Template[] = [];
-        templateSettings.forEach(settings => initializedTemplates.push(new Template(settings)));
-        return initializedTemplates;
-    }
-
-    getValidTemplates = (cols: Col[]): Template[] => {
-        console.log('called in manager with templates: ', this.templates)
-        return this.templates.filter(template => template.isValidTemplate(cols));
-    }
-
-    addTemplate = (newTemplate: Template) =>{
-        this.templates.push(newTemplate);
-    }
-
-    removeTemplate = (template: Template) => {
-        this.templates.splice(this.templates.indexOf(template), 1);
-        template.cleanup();
-    }
-}
\ No newline at end of file
-- 
cgit v1.2.3-70-g09d2

