remove unused method

This commit is contained in:
Philipp Kühn 2021-02-16 18:56:18 +01:00
parent 744dab5601
commit 65b8eff634
2 changed files with 0 additions and 8 deletions

View File

@ -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 {

View File

@ -1,4 +0,0 @@
export default function getAllMethodNames(obj: Object): string[] {
return Reflect.ownKeys(Reflect.getPrototypeOf(obj))
.map(name => name.toString())
}