diff --git a/chrome/content/vimperator/commands.js b/chrome/content/vimperator/commands.js index 679a95ff..742699bc 100644 --- a/chrome/content/vimperator/commands.js +++ b/chrome/content/vimperator/commands.js @@ -187,12 +187,7 @@ function Commands()//{{{ function addDefaultCommand(command) { - if (!command) - return false; - ex_commands.push(command); - - return true; } function commandsIterator() diff --git a/chrome/content/vimperator/mappings.js b/chrome/content/vimperator/mappings.js index 757a739a..8ba2aa5a 100644 --- a/chrome/content/vimperator/mappings.js +++ b/chrome/content/vimperator/mappings.js @@ -66,14 +66,10 @@ function Mappings()//{{{ function addDefaultMap(map) { - if (!map) - return false; - if (!main[map.mode]) main[map.mode] = []; main[map.mode].push(map); - return true; } function getFrom(mode, cmd, stack)