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

Unified Diff: ext/background.js

Issue 29807575: Noissue - Remove unused afterTabLoaded() (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Created June 14, 2018, 5:56 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ext/background.js
===================================================================
--- a/ext/background.js
+++ b/ext/background.js
@@ -99,32 +99,16 @@
sendMessage(message, responseCallback)
{
browser.tabs.sendMessage(this.id, message, responseCallback);
}
};
ext.getPage = id => new Page({id: parseInt(id, 10)});
- function afterTabLoaded(callback)
- {
- return openedTab =>
- {
- let onUpdated = (tabId, changeInfo, tab) =>
- {
- if (tabId == openedTab.id && changeInfo.status == "complete")
- {
- browser.tabs.onUpdated.removeListener(onUpdated);
- callback(new Page(openedTab));
- }
- };
- browser.tabs.onUpdated.addListener(onUpdated);
- };
- }
-
ext.pages = {
onLoading: new ext._EventTarget(),
onActivated: new ext._EventTarget(),
onRemoved: new ext._EventTarget()
};
browser.tabs.onUpdated.addListener((tabId, changeInfo, tab) =>
{
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld