[be] remove dead code in InferReactiveScopeVariables

This commit is contained in:
Joe Savona
2023-11-01 17:13:06 -07:00
parent 3e157bbc27
commit 3571dfa056
@@ -171,7 +171,6 @@ export function inferReactiveScopeVariables(fn: HIRFunction): void {
// Maps each scope (by its identifying member) to a ScopeId value
const scopes: Map<Identifier, ReactiveScope> = new Map();
const scopeVariables: Map<ReactiveScope, Set<Identifier>> = 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);
});
}