deprecation cleaning

This commit is contained in:
foudfou 2013-11-04 21:23:50 +01:00
parent 0f28d23f71
commit 402eb46c38
2 changed files with 1 additions and 3 deletions

View File

@ -6,8 +6,8 @@ const Cc = Components.classes;
const Ci = Components.interfaces;
const Cu = Components.utils;
Cu.import("resource:///modules/iteratorUtils.jsm");
Cu.import("resource:///modules/mailServices.js");
Cu.import("resource://gre/modules/iteratorUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/PluralForm.jsm");
Cu.import("resource://firetray/commons.js");

View File

@ -22,8 +22,6 @@ function PrefListener(branch_name, callback) {
.getService(Components.interfaces.nsIPrefService);
this._branch = prefService.getBranch(branch_name);
this._branch.QueryInterface(Ci.nsIPrefBranch);
if (!this._branch.addObserver)
this._branch.QueryInterface(Ci.nsIPrefBranch2); // deprecated in Gecko 13.0
this._callback = callback;
}