1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 15:28:00 +01:00

Remove some silly argument guard clauses.

Removed from Command(), Mapping() and Option().

Throw an exception if you care enough to check but we don't do so
anywhere else.
This commit is contained in:
Doug Kearns
2009-05-15 00:39:47 +10:00
parent a487d34d7d
commit 56f1fe6c50
3 changed files with 0 additions and 9 deletions

View File

@@ -53,9 +53,6 @@ the terms of any one of the MPL, the GPL or the LGPL.
*/
function Command(specs, description, action, extraInfo) //{{{
{
if (!specs || !action)
return null;
if (!extraInfo)
extraInfo = {};

View File

@@ -49,9 +49,6 @@ the terms of any one of the MPL, the GPL or the LGPL.
*/
function Map(modes, keys, description, action, extraInfo) //{{{
{
if (!modes || (!keys || !keys.length) || !action)
return null;
if (!extraInfo)
extraInfo = {};

View File

@@ -32,9 +32,6 @@ the terms of any one of the MPL, the GPL or the LGPL.
// options.add() instead
function Option(names, description, type, defaultValue, extraInfo) //{{{
{
if (!names || !type)
return null;
if (!extraInfo)
extraInfo = {};