Commit 4a72cf31 authored by Laurent Montel's avatar Laurent Montel 😁

Enable code

parent 2f3ecf5d
...@@ -157,7 +157,6 @@ void AdBlockMatcher::update() ...@@ -157,7 +157,6 @@ void AdBlockMatcher::update()
QHash<QString, const AdBlockRule *> cssRulesHash; QHash<QString, const AdBlockRule *> cssRulesHash;
QVector<const AdBlockRule *> exceptionCssRules; QVector<const AdBlockRule *> exceptionCssRules;
#if 0 //FIXME
Q_FOREACH (AdBlockSubscription *subscription, m_manager->subscriptions()) { Q_FOREACH (AdBlockSubscription *subscription, m_manager->subscriptions()) {
Q_FOREACH (const AdBlockRule *rule, subscription->allRules()) { Q_FOREACH (const AdBlockRule *rule, subscription->allRules()) {
// Don't add internally disabled rules to cache // Don't add internally disabled rules to cache
...@@ -235,7 +234,6 @@ void AdBlockMatcher::update() ...@@ -235,7 +234,6 @@ void AdBlockMatcher::update()
m_elementHidingRules = m_elementHidingRules.left(m_elementHidingRules.size() - 1); m_elementHidingRules = m_elementHidingRules.left(m_elementHidingRules.size() - 1);
m_elementHidingRules.append(QLatin1String("{display:none !important;} ")); m_elementHidingRules.append(QLatin1String("{display:none !important;} "));
} }
#endif
} }
void AdBlockMatcher::clear() void AdBlockMatcher::clear()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment