From 9f883eb581eb4aa10b9c4fc4d7d4bab6e86219fa Mon Sep 17 00:00:00 2001 From: theodesp <328805+theodesp@users.noreply.github.com> Date: Thu, 31 Aug 2023 14:24:14 +0100 Subject: [PATCH] Refactor: Removed unused code in Edit.tsx --- packages/block-editor-utils/src/components/Edit.tsx | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/packages/block-editor-utils/src/components/Edit.tsx b/packages/block-editor-utils/src/components/Edit.tsx index 3be1421d3..b7048a0df 100644 --- a/packages/block-editor-utils/src/components/Edit.tsx +++ b/packages/block-editor-utils/src/components/Edit.tsx @@ -1,22 +1,9 @@ import * as React from 'react'; import { useBlockProps } from '@wordpress/block-editor'; -import { addFilter } from '@wordpress/hooks'; import { EditFnContext } from '../registerFaustBlock.js'; import Preview from './Preview.js'; import EditFormFields from './EditFormFields.js'; import getControlFields from '../helpers/getControlFields.js'; -import { Control } from '../types/index.js'; - -type ControlMap = { [key: string]: Control }; -addFilter( - 'faustBlockEditorUtils.controls', - 'faust-block-editor-utils', - (controls: ControlMap) => { - // eslint-disable-next-line no-param-reassign - controls.color = () =>
Another Color
; - return controls; - }, -); export default function Edit>( ctx: EditFnContext,