removed obsolete code.
This commit is contained in:
Yordan Mihaylov 2016-04-15 09:14:45 +03:00
Родитель 898f2e9172 fe95a53f6e
Коммит d45f9d5867
1 изменённых файлов: 0 добавлений и 7 удалений

Просмотреть файл

@ -37,7 +37,6 @@ public class RuleRegistryImpl extends AbstractRegistry<Rule, String>implements R
private RuleEngine ruleEngine;
private Logger logger;
private Storage<Boolean> disabledRulesStorage;
private boolean hasManagedRuleProvider;
private static final String SOURCE = RuleRegistryImpl.class.getSimpleName();
@ -49,9 +48,6 @@ public class RuleRegistryImpl extends AbstractRegistry<Rule, String>implements R
@Override
protected synchronized void addProvider(Provider<Rule> provider) {
if (provider instanceof ManagedRuleProvider) {
hasManagedRuleProvider = true;
}
Collection<Rule> rules = provider.getAll();
for (Iterator<Rule> it = rules.iterator(); it.hasNext();) {
Rule rule = it.next();
@ -82,9 +78,6 @@ public class RuleRegistryImpl extends AbstractRegistry<Rule, String>implements R
disabledRulesStorage.remove(uid);
}
}
if (provider instanceof ManagedRuleProvider) {
hasManagedRuleProvider = false;
}
super.removeProvider(provider);
}