From 3582d7c013bbcc8c2c5455f8e715c29ad33e7188 Mon Sep 17 00:00:00 2001 From: lawvs <18554747+lawvs@users.noreply.github.com> Date: Tue, 26 Jul 2022 17:32:08 +0800 Subject: [PATCH] chore: clean api --- .../editor-core/src/recast-block/view.ts | 22 ++----------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/libs/components/editor-core/src/recast-block/view.ts b/libs/components/editor-core/src/recast-block/view.ts index de505f960..64f44eda7 100644 --- a/libs/components/editor-core/src/recast-block/view.ts +++ b/libs/components/editor-core/src/recast-block/view.ts @@ -119,24 +119,6 @@ export const useRecastView = () => { [recastViews, setViews] ); - /** - * @deprecated Use updateView instead - */ - const changeScene = useCallback( - async ( - id: RecastViewId, - newScene: RecastScene.Page | RecastScene.Kanban - ) => { - const curView = getView(id); - if (curView.type === newScene) { - return; - } - curView.type = newScene; - await setViews(recastViews); - }, - [getView, recastViews, setViews] - ); - /** * Get kanban ability */ @@ -159,11 +141,11 @@ export const useRecastView = () => { recastViews, setCurrentView, addView, - updateView, + // updateView, renameView, removeView, + // TODO reorder API withKanbanView, - // TODO reorder API }; };