diff --git a/src/utils/getStaticAttributeValue.ts b/src/utils/getStaticAttributeValue.ts deleted file mode 100644 index 40ef4a1ec5..0000000000 --- a/src/utils/getStaticAttributeValue.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Node } from '../interfaces'; - -export default function getStaticAttributeValue(node: Node, name: string) { - const attribute = node.attributes.find( - (attr: Node) => attr.type === 'Attribute' && attr.name.toLowerCase() === name - ); - - if (!attribute) return null; - - if (attribute.value === true) return true; - if (attribute.value.length === 0) return ''; - - if (attribute.value.length === 1 && attribute.value[0].type === 'Text') { - return attribute.value[0].data; - } - - return null; -}