Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/plugin/PluginFilter.cpp

Issue 5948518908821504: Issue #1158 - removed unnecessary definitions and #ifdef/#else/#endif sections (Closed)
Patch Set: Created Aug. 6, 2014, 7:38 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/plugin/PluginFilter.cpp
===================================================================
--- a/src/plugin/PluginFilter.cpp
+++ b/src/plugin/PluginFilter.cpp
@@ -1,13 +1,9 @@
#include "PluginStdAfx.h"
#include "PluginFilter.h"
-
-#if (defined PRODUCT_ADBLOCKPLUS)
#include "PluginSettings.h"
#include "PluginClient.h"
#include "PluginClientFactory.h"
-#endif
-
#include "PluginMutex.h"
#include "PluginSettings.h"
#include "PluginSystem.h"
@@ -618,18 +614,12 @@
bool CPluginFilter::LoadHideFilters(std::vector<std::wstring> filters)
{
-
ClearFilters();
-
bool isRead = false;
-
-#ifdef PRODUCT_ADBLOCKPLUS
CPluginClient* client = CPluginClient::GetInstance();
-#endif
// Parse hide string
int pos = 0;
-
CriticalSection::Lock filterEngineLock(s_criticalSectionFilterMap);
{
for (std::vector<std::wstring>::iterator it = filters.begin(); it < filters.end(); ++it)

Powered by Google App Engine
This is Rietveld