deprecation cleaning
This commit is contained in:
parent
0f28d23f71
commit
402eb46c38
|
@ -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");
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue