[Pkg-mozext-commits] [perspectives-extension] 14/44: Perspectives - remove dead code

David Prévot taffit at moszumanska.debian.org
Sun Jun 26 04:59:18 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository perspectives-extension.

commit bfcf2ef96afff5d91a91f15434cbc16e90d1aae0
Author: Dave Schaefer <dave.schaefer at gmail.com>
Date:   Sun Jun 12 20:34:12 2016 -0700

    Perspectives - remove dead code
---
 plugin/chrome/content/notaries.js | 12 ------------
 plugin/chrome/content/notify.js   |  6 ------
 2 files changed, 18 deletions(-)

diff --git a/plugin/chrome/content/notaries.js b/plugin/chrome/content/notaries.js
index fe936c5..c200b8f 100644
--- a/plugin/chrome/content/notaries.js
+++ b/plugin/chrome/content/notaries.js
@@ -1006,17 +1006,6 @@ var Perspectives = {
 		onLinkIconAvailable: function() { }
 	},
 
-	requeryAllTabs: function(b) {
-		/*
-		alert("requeryAllTabs is disabled");
-		var num = b.browsers.length;
-		for(var i = 0; i < num; i++) {
-			var browser = b.getBrowserAtIndex(i);
-			Perspectives.updateStatus(window,false);
-		}
-		*/
-	},
-
 	initNotaries: function() {
 		try {
 			Pers_debug.d_print("main", "\nPerspectives Initialization\n");
@@ -1030,7 +1019,6 @@ var Perspectives = {
 			Pers_debug.d_print("main", Perspectives.notaries);
 			Pers_statusbar.setStatus(null, Pers_statusbar.STATE_NEUT, "");
 			getBrowser().addProgressListener(Perspectives.notaryListener);
-			setTimeout(function() { Perspectives.requeryAllTabs(gBrowser); }, 4000);
 			Pers_debug.d_print("main", "Perspectives Finished Initialization\n\n");
 		} catch(e) {
 			if(Perspectives.strbundle == null) {
diff --git a/plugin/chrome/content/notify.js b/plugin/chrome/content/notify.js
index faa81de..599e7fd 100644
--- a/plugin/chrome/content/notify.js
+++ b/plugin/chrome/content/notify.js
@@ -56,8 +56,6 @@ var Pers_notify = {
 
 	// generic notify function used by all other notify functions
 	notifyGeneric: function(b, priority, message, buttons){
-		//Happens on requeryAllTabs
-
 		try{
 			var notificationBox = b.getNotificationBox();
 		}
@@ -143,8 +141,6 @@ var Pers_notify = {
 					accessKey : "",
 					callback: function() {
 						try {
-
-							//Happens on requeryAllTabs
 							try{
 								var notificationBox = ti.browser.getNotificationBox();
 								}
@@ -239,8 +235,6 @@ var Pers_notify = {
 
 	clear_existing_banner: function(b, value_text) {
 		try {
-			//Happens on requeryAllTabs
-
 			try{
 				var notificationBox = b.getNotificationBox();
 			}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/perspectives-extension.git



More information about the Pkg-mozext-commits mailing list