mirror of https://github.com/gorhill/uBlock.git
This commit is contained in:
parent
15714ad22b
commit
51ade9f043
|
@ -2106,13 +2106,6 @@ FilterContainer.prototype.removeBadFilters = function() {
|
|||
if ( entry === undefined ) {
|
||||
continue;
|
||||
}
|
||||
if ( entry instanceof FilterHostnameDict ) {
|
||||
entry.remove(fclass); // 'fclass' is hostname
|
||||
if ( entry.size === 0 ) {
|
||||
this.categories.delete(hash);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if ( entry instanceof FilterBucket ) {
|
||||
entry.remove(fclass, fdata);
|
||||
if ( entry.filters.length === 1 ) {
|
||||
|
@ -2120,8 +2113,22 @@ FilterContainer.prototype.removeBadFilters = function() {
|
|||
}
|
||||
continue;
|
||||
}
|
||||
if ( entry instanceof FilterHostnameDict ) {
|
||||
entry.remove(fclass); // 'fclass' is hostname
|
||||
if ( entry.size === 0 ) {
|
||||
bucket.delete(token);
|
||||
if ( bucket.size === 0 ) {
|
||||
this.categories.delete(hash);
|
||||
}
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if ( entry.fid === fclass && entry.toSelfie() === fdata ) {
|
||||
this.categories.delete(hash);
|
||||
bucket.delete(token);
|
||||
if ( bucket.size === 0 ) {
|
||||
this.categories.delete(hash);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue