mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 18:42:27 +01:00
Remove dump statements and try-catch blocks
This commit is contained in:
@@ -867,12 +867,8 @@ function Completion() //{{{
|
||||
let filter = key + (string || "");
|
||||
for (let [,obj] in Iterator(objects))
|
||||
{
|
||||
try
|
||||
{
|
||||
this.context.fork(obj[1], top[OFFSET], this, fill,
|
||||
obj[0], obj[1], compl, compl != orig, filter, last, key.length);
|
||||
}
|
||||
catch (e) { liberator.reportError(e) }
|
||||
this.context.fork(obj[1], top[OFFSET], this, fill,
|
||||
obj[0], obj[1], compl, compl != orig, filter, last, key.length);
|
||||
}
|
||||
if (orig)
|
||||
return;
|
||||
@@ -1153,7 +1149,6 @@ function Completion() //{{{
|
||||
context.format = bookmarks.format;
|
||||
context.completions = bookmarks.get(context.filter)
|
||||
context.filters = [];
|
||||
liberator.dump(tags);
|
||||
if (tags)
|
||||
context.filters.push(function ({ item: item }) tags.every(function (tag) item.tags.indexOf(tag) > -1));
|
||||
},
|
||||
@@ -1519,7 +1514,6 @@ function Completion() //{{{
|
||||
bookmarks.getSuggestions(name, ctxt.filter, function (compl) {
|
||||
ctxt.incomplete = false;
|
||||
ctxt.completions = compl;
|
||||
liberator.dump(compl);
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
@@ -395,11 +395,7 @@ let (array = util.Array)
|
||||
}
|
||||
|
||||
const styles = storage.newObject("styles", Styles, false);
|
||||
try
|
||||
{
|
||||
const highlight = storage.newObject("highlight", Highlights, false);
|
||||
}
|
||||
catch (e) { liberator.reportError(e) }
|
||||
const highlight = storage.newObject("highlight", Highlights, false);
|
||||
|
||||
liberator.registerObserver("load_commands", function ()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user