diff --git a/packages/core/src/CommandManager.ts b/packages/core/src/CommandManager.ts index 2dcefe0d..b207cef1 100644 --- a/packages/core/src/CommandManager.ts +++ b/packages/core/src/CommandManager.ts @@ -7,7 +7,6 @@ import { RawCommands, CommandProps, } from './types' -import getAllMethodNames from './utilities/getAllMethodNames' export default class CommandManager { @@ -15,12 +14,9 @@ export default class CommandManager { commands: RawCommands - methodNames: string[] = [] - constructor(editor: Editor, commands: RawCommands) { this.editor = editor this.commands = commands - this.methodNames = getAllMethodNames(this.editor) } public createCommands(): SingleCommands { diff --git a/packages/core/src/utilities/getAllMethodNames.ts b/packages/core/src/utilities/getAllMethodNames.ts deleted file mode 100644 index 62081b6d..00000000 --- a/packages/core/src/utilities/getAllMethodNames.ts +++ /dev/null @@ -1,4 +0,0 @@ -export default function getAllMethodNames(obj: Object): string[] { - return Reflect.ownKeys(Reflect.getPrototypeOf(obj)) - .map(name => name.toString()) -}