Skip to content

Commit 27f6fef

Browse files
semenkodiracdeltas
authored andcommitted
Remove silly global_rulesets
A "global_ruleset" would've been a totally wildcard rule, "*". There are zero of these in the current code, and if there were, I imagine it'd be an error. Signed-off-by: Nick Semenkovich <semenko@alum.mit.edu>
1 parent 5fc8758 commit 27f6fef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

chromium/rules.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ function RuleSets() {
8585
xhr.send(null);
8686
this.loadRuleSet(xhr);
8787
}
88-
this.global_rulesets = this.targets["*"] ? this.targets["*"] : [];
8988
}
9089

9190
RuleSets.prototype = {
@@ -190,7 +189,7 @@ RuleSets.prototype = {
190189
log(DBUG, "Ruleset cache miss for " + host);
191190

192191
var tmp, t;
193-
var results = this.global_rulesets.slice(0); // copy global_rulesets
192+
var results = [];
194193
if (this.targets[host])
195194
results = results.concat(this.targets[host]);
196195
// replace each portion of the domain with a * in turn

0 commit comments

Comments
 (0)