From 3fb917dc6da14174d73450a03d41bc99d6cb2ac2 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Wed, 6 Dec 2023 18:37:37 -0500 Subject: [PATCH] chore: remove unused check (#9817) Co-authored-by: Rich Harris --- packages/svelte/src/compiler/phases/2-analyze/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/svelte/src/compiler/phases/2-analyze/index.js b/packages/svelte/src/compiler/phases/2-analyze/index.js index 8d7d9a5906..bd43aca398 100644 --- a/packages/svelte/src/compiler/phases/2-analyze/index.js +++ b/packages/svelte/src/compiler/phases/2-analyze/index.js @@ -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) {