diff --git a/src/util.ts b/src/util.ts index cb7e4976aaaf0a7c7aa5d52804250830b63e90b5..70b56d44504487d13d8fa4d7f0e647fb6b15fb50 100644 --- a/src/util.ts +++ b/src/util.ts @@ -1,16 +1,5 @@ import { isMfmBlock, MfmNode, TEXT } from './node'; -export function createNode(type: string, props?: Record<string, any>, children?: MfmNode[]): MfmNode { - const node: any = { type }; - if (props != null) { - node.props = props; - } - if (children != null) { - node.children = children; - } - return node; -} - export function mergeText(nodes: (MfmNode | string)[]): MfmNode[] { const dest: MfmNode[] = []; const storedChars: string[] = [];