Remove unused helper functions

This commit is contained in:
Henrik Giesel 2021-01-27 00:55:00 +01:00
parent b2b17f4c3d
commit d9f00c4839

View File

@ -105,18 +105,10 @@ function onKeyUp(evt: KeyboardEvent): void {
} }
} }
function nodeIsBRElement(node: Node): node is HTMLBRElement {
return nodeIsElement(node) && node.tagName === "BR";
}
function nodeIsElement(node: Node): node is Element { function nodeIsElement(node: Node): node is Element {
return node.nodeType === Node.ELEMENT_NODE; return node.nodeType === Node.ELEMENT_NODE;
} }
function nodeIsText(node: Node): node is Text {
return node.nodeType === Node.TEXT_NODE;
}
const INLINE_TAGS = [ const INLINE_TAGS = [
"A", "A",
"ABBR", "ABBR",