Remove safeDebug
This commit is contained in:
parent
20a50d1aaa
commit
8d7db5a63e
|
@ -46,7 +46,6 @@ Components.utils.import("resource://gre/modules/Services.jsm");
|
|||
this.logError = logError;
|
||||
this.getErrors = getErrors;
|
||||
this.getSystemInfo = getSystemInfo;
|
||||
this.safeDebug = safeDebug;
|
||||
this.getString = getString;
|
||||
this.localeJoin = localeJoin;
|
||||
this.setFontSize = setFontSize;
|
||||
|
@ -1398,22 +1397,6 @@ Components.utils.import("resource://gre/modules/Services.jsm");
|
|||
AddonManager.getAllAddons(onHaveInstalledAddons);
|
||||
}
|
||||
|
||||
|
||||
function safeDebug(obj){
|
||||
for (var i in obj){
|
||||
try {
|
||||
Zotero.debug(i + ': ' + obj[i]);
|
||||
}
|
||||
catch (e){
|
||||
try {
|
||||
Zotero.debug(i + ': ERROR');
|
||||
}
|
||||
catch (e){}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function getString(name, params){
|
||||
try {
|
||||
if (params != undefined){
|
||||
|
|
Loading…
Reference in New Issue
Block a user