mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-16 23:42:39 +01:00
Code review: remove dead code
This commit is contained in:
parent
c2741e07f0
commit
561e1ca93e
@ -172,7 +172,7 @@ return asyncJobManager;
|
|||||||
// Update visual of extension icon.
|
// Update visual of extension icon.
|
||||||
|
|
||||||
µBlock.updateBadgeAsync = (function() {
|
µBlock.updateBadgeAsync = (function() {
|
||||||
var µb = µBlock, tabIdToUpdate;
|
var µb = µBlock;
|
||||||
|
|
||||||
// Cache callback definition, it was a bad idea to define this one inside
|
// Cache callback definition, it was a bad idea to define this one inside
|
||||||
// updateBadgeAsync
|
// updateBadgeAsync
|
||||||
@ -189,7 +189,6 @@ return asyncJobManager;
|
|||||||
if ( vAPI.isBehindTheSceneTabId(tabId) ) {
|
if ( vAPI.isBehindTheSceneTabId(tabId) ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
tabIdToUpdate = tabId;
|
|
||||||
µb.asyncJobs.add('updateBadge-' + tabId, tabId, updateBadge, 250);
|
µb.asyncJobs.add('updateBadge-' + tabId, tabId, updateBadge, 250);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user