| Index: src/plugin/PluginFilter.cpp |
| =================================================================== |
| --- a/src/plugin/PluginFilter.cpp |
| +++ b/src/plugin/PluginFilter.cpp |
| @@ -651,35 +651,3 @@ |
| m_elementHideTagsClass.clear(); |
| } |
| -bool CPluginFilter::ShouldBlock(const std::wstring& src, AdblockPlus::FilterEngine::ContentType contentType, const std::wstring& domain, bool addDebug) const |
| -{ |
| - std::wstring srcTrimmed = TrimString(src); |
| - |
| - // We should not block the empty string, so all filtering does not make sense |
| - // Therefore we just return |
| - if (srcTrimmed.empty()) |
| - { |
| - return false; |
| - } |
| - |
| - CPluginSettings* settings = CPluginSettings::GetInstance(); |
| - |
| - CPluginClient* client = CPluginClient::GetInstance(); |
| - bool result = client->Matches(srcTrimmed, contentType, domain); |
| - |
| -#ifdef ENABLE_DEBUG_RESULT |
| - if (addDebug) |
| - { |
| - std::wstring type = ToUtf16String(AdblockPlus::FilterEngine::ContentTypeToString(contentType)); |
| - if (result) |
| - { |
| - CPluginDebug::DebugResultBlocking(type, srcTrimmed, domain); |
| - } |
| - else |
| - { |
| - CPluginDebug::DebugResultIgnoring(type, srcTrimmed, domain); |
| - } |
| - } |
| -#endif |
| - return result; |
| -} |