chore: remove unused util function
This commit is contained in:
@@ -164,7 +164,7 @@ export function findProp(
|
||||
const p = node.props[i]
|
||||
if (p.type === NodeTypes.ATTRIBUTE) {
|
||||
if (dynamicOnly) continue
|
||||
if (p.name === name && p.value && !p.value.isEmpty) {
|
||||
if (p.name === name && p.value) {
|
||||
return p
|
||||
}
|
||||
} else if (
|
||||
@@ -248,10 +248,6 @@ export function toValidAssetId(
|
||||
return `_${type}_${name.replace(/[^\w]/g, '_')}`
|
||||
}
|
||||
|
||||
export function isEmptyExpression(node: ExpressionNode) {
|
||||
return node.type === NodeTypes.SIMPLE_EXPRESSION && !node.content.trim()
|
||||
}
|
||||
|
||||
// Check if a node contains expressions that reference current context scope ids
|
||||
export function hasScopeRef(
|
||||
node: TemplateChildNode | IfBranchNode | ExpressionNode | undefined,
|
||||
|
||||
Reference in New Issue
Block a user