[Pkg-mozext-commits] [tabmixplus] 92/147: Remove redundant code

David Prévot taffit at moszumanska.debian.org
Sat Aug 5 15:27:40 UTC 2017


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

taffit pushed a commit to branch master
in repository tabmixplus.

commit c8943237f544f40a420775041016be8124ec41e4
Author: onemen <tabmix.onemen at gmail.com>
Date:   Mon Jan 9 16:26:49 2017 +0200

    Remove redundant code
---
 modules/TabmixSvc.jsm | 26 --------------------------
 1 file changed, 26 deletions(-)

diff --git a/modules/TabmixSvc.jsm b/modules/TabmixSvc.jsm
index a3e9981..b65823f 100644
--- a/modules/TabmixSvc.jsm
+++ b/modules/TabmixSvc.jsm
@@ -366,20 +366,6 @@ XPCOMUtils.defineLazyGetter(TabmixSvc, "SessionStore", function() {
 });
 
 tabStateCache = {
-  get _update() {
-    delete this._update;
-    return (this._update = isVersion(260) ? "updateField" : "update");
-  },
-
-  get TabStateCache() {
-    delete this.TabStateCache;
-    if (isVersion(270))
-      Cu.import("resource:///modules/sessionstore/TabStateCache.jsm", this);
-    else
-      this.TabStateCache = TabmixSvc.SessionStoreGlobal.TabStateCache;
-    return this.TabStateCache;
-  },
-
   saveTabAttributes(tab, attrib, save = true) {
     if (TabmixSvc.isPaleMoon) {
       return;
@@ -410,17 +396,5 @@ tabStateCache = {
         browser.__SS_data.attributes = {};
       update(browser.__SS_data.attributes);
     }
-
-    // Bug 905049 fixed by Bug 960903 - Broadcast session history
-    if (isVersion(290))
-      return;
-
-    let tabHasCache = isVersion(270) ? this.TabStateCache.has(browser) :
-                               this.TabStateCache._data.has(browser);
-    if (tabHasCache) {
-      let attributes = this.TabStateCache.get(browser).attributes || {};
-      update(attributes);
-      this.TabStateCache[this._update](browser, "attributes", attributes);
-    }
   }
 };

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



More information about the Pkg-mozext-commits mailing list