Index: compiled/filter/Filter.cpp |
=================================================================== |
--- a/compiled/filter/Filter.cpp |
+++ b/compiled/filter/Filter.cpp |
@@ -101,33 +101,25 @@ |
// Parsing also normalizes the filter text, so it has to be done before the |
// lookup in knownFilters. |
union |
{ |
RegExpFilterData regexp; |
ElemHideData elemhide; |
} data; |
- bool needConversion = false; |
ParsedDomains parsedDomains; |
DependentString error; |
Filter::Type type = CommentFilter::Parse(text); |
if (type == Filter::Type::UNKNOWN) |
- type = ElemHideBase::Parse(text, error, data.elemhide, needConversion, parsedDomains); |
+ type = ElemHideBase::Parse(text, error, data.elemhide, parsedDomains); |
if (type == Filter::Type::UNKNOWN) |
type = RegExpFilter::Parse(text, error, data.regexp); |
- if (needConversion) |
- text = ElemHideBase::ConvertFilter(text, data.elemhide.mSelectorStart); |
- |
- // At that point we failed the conversion. |
- if (text.empty()) |
- return nullptr; |
- |
auto knownFilter = knownFilters.find(text); |
if (knownFilter) |
{ |
knownFilter->second->AddRef(); |
return knownFilter->second; |
} |
FilterPtr filter; |