remove unused method
This commit is contained in:
@@ -7,7 +7,6 @@ import {
|
|||||||
RawCommands,
|
RawCommands,
|
||||||
CommandProps,
|
CommandProps,
|
||||||
} from './types'
|
} from './types'
|
||||||
import getAllMethodNames from './utilities/getAllMethodNames'
|
|
||||||
|
|
||||||
export default class CommandManager {
|
export default class CommandManager {
|
||||||
|
|
||||||
@@ -15,12 +14,9 @@ export default class CommandManager {
|
|||||||
|
|
||||||
commands: RawCommands
|
commands: RawCommands
|
||||||
|
|
||||||
methodNames: string[] = []
|
|
||||||
|
|
||||||
constructor(editor: Editor, commands: RawCommands) {
|
constructor(editor: Editor, commands: RawCommands) {
|
||||||
this.editor = editor
|
this.editor = editor
|
||||||
this.commands = commands
|
this.commands = commands
|
||||||
this.methodNames = getAllMethodNames(this.editor)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public createCommands(): SingleCommands {
|
public createCommands(): SingleCommands {
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
export default function getAllMethodNames(obj: Object): string[] {
|
|
||||||
return Reflect.ownKeys(Reflect.getPrototypeOf(obj))
|
|
||||||
.map(name => name.toString())
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user