From 3571dfa0568454932ecf5fd36958fc77c915ccd7 Mon Sep 17 00:00:00 2001 From: Joe Savona Date: Wed, 1 Nov 2023 17:13:06 -0700 Subject: [PATCH] [be] remove dead code in InferReactiveScopeVariables --- .../src/ReactiveScopes/InferReactiveScopeVariables.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/InferReactiveScopeVariables.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/InferReactiveScopeVariables.ts index 4f9c57d6fb..d756cb9173 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/InferReactiveScopeVariables.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/InferReactiveScopeVariables.ts @@ -171,7 +171,6 @@ export function inferReactiveScopeVariables(fn: HIRFunction): void { // Maps each scope (by its identifying member) to a ScopeId value const scopes: Map = new Map(); - const scopeVariables: Map> = new Map(); /** * Iterate over all the identifiers and assign a unique ScopeId @@ -201,13 +200,6 @@ export function inferReactiveScopeVariables(fn: HIRFunction): void { ); } identifier.scope = scope; - - let vars = scopeVariables.get(scope); - if (vars === undefined) { - vars = new Set(); - scopeVariables.set(scope, vars); - } - vars.add(identifier); }); }