Index: src/plugin/PluginFilter.cpp |
=================================================================== |
--- a/src/plugin/PluginFilter.cpp |
+++ b/src/plugin/PluginFilter.cpp |
@@ -445,11 +445,6 @@ |
// CPluginFilter |
// ============================================================================ |
-CPluginFilter::CPluginFilter() |
-{ |
- ClearFilters(); |
-} |
- |
bool CPluginFilter::AddFilterElementHide(std::wstring filterText) |
{ |
DEBUG_FILTER(L"Input: " + filterText + L" filterFile" + filterFile); |
@@ -609,9 +604,9 @@ |
return false; |
} |
-bool CPluginFilter::LoadHideFilters(std::vector<std::wstring> filters) |
+bool CPluginFilter::LoadHideFilters() |
{ |
- ClearFilters(); |
+ auto filters = CPluginClient::GetInstance()->GetElementHidingSelectors(domain); |
bool isRead = false; |
CPluginClient* client = CPluginClient::GetInstance(); |
@@ -645,13 +640,3 @@ |
return isRead; |
} |
- |
-void CPluginFilter::ClearFilters() |
-{ |
- // Clear filter maps |
- CriticalSection::Lock filterEngineLock(s_criticalSectionFilterMap); |
- m_elementHideTags.clear(); |
- m_elementHideTagsId.clear(); |
- m_elementHideTagsClass.clear(); |
-} |
- |