From 7d6a47ce869ebb56cd2f8a207d2253ca441b5dce Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 26 Nov 2024 20:53:44 -0500 Subject: [PATCH] chore: Remove unused undo/redo methods --- app/editor/index.tsx | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/app/editor/index.tsx b/app/editor/index.tsx index 771af742a2..f3474a6e35 100644 --- a/app/editor/index.tsx +++ b/app/editor/index.tsx @@ -4,7 +4,6 @@ import { darken, transparentize } from "polished"; import { baseKeymap } from "prosemirror-commands"; import { dropCursor } from "prosemirror-dropcursor"; import { gapCursor } from "prosemirror-gapcursor"; -import { redo, undo } from "prosemirror-history"; import { inputRules, InputRule } from "prosemirror-inputrules"; import { keymap } from "prosemirror-keymap"; import { MarkdownParser } from "prosemirror-markdown"; @@ -608,20 +607,6 @@ export class Editor extends React.PureComponent< this.props ); - /** - * Undo the last change in the editor. - * - * @returns True if the undo was successful - */ - public undo = () => undo(this.view.state, this.view.dispatch, this.view); - - /** - * Redo the last change in the editor. - * - * @returns True if the change was successful - */ - public redo = () => redo(this.view.state, this.view.dispatch, this.view); - /** * Returns true if the trimmed content of the editor is an empty string. *