mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 06:03:22 +08:00
remove unused method
This commit is contained in:
parent
744dab5601
commit
65b8eff634
@ -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 {
|
||||
|
@ -1,4 +0,0 @@
|
||||
export default function getAllMethodNames(obj: Object): string[] {
|
||||
return Reflect.ownKeys(Reflect.getPrototypeOf(obj))
|
||||
.map(name => name.toString())
|
||||
}
|
Loading…
Reference in New Issue
Block a user