From a2f59e45d00eae2ab58146f59feb1790f815e844 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Fri, 10 Oct 2008 11:27:20 +0000 Subject: [PATCH] remove range and bang error messages from :undoall action as they're now handled by the bang and count extraInfo properties --- content/tabs.js | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/content/tabs.js b/content/tabs.js index 7e3d2fab..d7b1730a 100644 --- a/content/tabs.js +++ b/content/tabs.js @@ -608,17 +608,6 @@ liberator.Tabs = function () //{{{ "Undo closing of all closed tabs", function (args, special, count) { - if (count > -1) - { - liberator.echoerr("E481: No range allowed"); - return; - } - if (special) - { - liberator.echoerr("E477: No ! allowed"); - return; - } - var ss = Components.classes["@mozilla.org/browser/sessionstore;1"] .getService(Components.interfaces.nsISessionStore); var undoItems = eval("(" + ss.getClosedTabData(window) + ")"); @@ -633,10 +622,7 @@ liberator.Tabs = function () //{{{ liberator.commands.add(["wqa[ll]", "wq", "xa[ll]"], "Save the session and quit", - function () - { - liberator.quit(true); - }, + function () { liberator.quit(true); }, { argCount: "0" }); }