Remove unused helper functions
This commit is contained in:
parent
b2b17f4c3d
commit
d9f00c4839
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user