From 61015d1b5ed6ea12aea031339478f3fab5e4e210 Mon Sep 17 00:00:00 2001 From: Chen-I Lim Date: Wed, 10 Mar 2021 10:55:46 -0800 Subject: [PATCH] cleanup --- .../components/content/contentRegistry.tsx | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/webapp/src/components/content/contentRegistry.tsx b/webapp/src/components/content/contentRegistry.tsx index 55ca8bb41..8f1127c82 100644 --- a/webapp/src/components/content/contentRegistry.tsx +++ b/webapp/src/components/content/contentRegistry.tsx @@ -32,31 +32,6 @@ class ContentRegistry { getHandler(type: BlockTypes): ContentHandler | undefined { return this.registry.get(type) } - - // createBlock(type: BlockTypes): MutableContentBlock | undefined { - // const entry = this.registry.get(type) - // return entry?.createBlock() - // } - - // createComponent(block: IContentBlock, intl: IntlShape, readonly: boolean): JSX.Element | undefined { - // const entry = this.registry.get(block.type) - // return entry?.createComponent(block, intl, readonly) - // } - - // typeDisplayText(intl: IntlShape, type: BlockTypes): string { - // const entry = this.registry.get(type) - // if (!entry) { - // Utils.logError(`Unknown type: ${type}`) - // return type - // } - - // return entry.getDisplayText(intl) - // } - - // getIcon(type: BlockTypes): JSX.Element | undefined { - // const entry = this.registry.get(type) - // return entry?.getIcon() - // } } const contentRegistry = new ContentRegistry()