chore: remove unused check (#9817)

Co-authored-by: Rich Harris <rich.harris@vercel.com>
pull/9824/head
Rich Harris 2 years ago committed by GitHub
parent 548ffdd3bd
commit 3fb917dc6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -409,10 +409,10 @@ export function analyze_component(root, options) {
analysis.reactive_statements = order_reactive_statements(analysis.reactive_statements);
}
// warn on any nonstate declarations that are a) reassigned and mutated and b) referenced in the template
// warn on any nonstate declarations that are a) reassigned and b) referenced in the template
for (const scope of [module.scope, instance.scope]) {
outer: for (const [name, binding] of scope.declarations) {
if (binding.kind === 'normal' && binding.reassigned && binding.mutated) {
if (binding.kind === 'normal' && binding.reassigned) {
for (const { path } of binding.references) {
if (path[0].type !== 'Fragment') continue;
for (let i = 1; i < path.length; i += 1) {

Loading…
Cancel
Save