Index: src/plugin/AdblockPlusClient.cpp |
=================================================================== |
--- a/src/plugin/AdblockPlusClient.cpp |
+++ b/src/plugin/AdblockPlusClient.cpp |
@@ -197,11 +197,6 @@ |
isWhitelisted = m_filter.get() && m_filter->ShouldWhiteList(url); |
} |
m_criticalSectionFilter.Unlock(); |
- |
- if (isWhitelisted) |
- { |
- CacheWhiteListedUrl(url, isWhitelisted); |
- } |
} |
return isWhitelisted; |
@@ -362,3 +357,18 @@ |
DEBUG_GENERAL(e.what()); |
} |
} |
+ |
+void CAdblockPlusClient::RemoveFilter(const std::string& text) |
+{ |
+ Communication::OutputBuffer request; |
+ request << Communication::PROC_REMOVE_FILTER << text; |
+ |
+ try |
+ { |
+ CallAdblockPlusEngineProcedure(request); |
+ } |
+ catch (const std::exception& e) |
+ { |
+ DEBUG_GENERAL(e.what()); |
+ } |
+} |