summaryrefslogtreecommitdiff
path: root/src/command_func.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-01-18 22:57:21 +0000
committerrubidium <rubidium@openttd.org>2010-01-18 22:57:21 +0000
commit4d93b704d9f0e6e58dac1d97f79a05bd4320c43f (patch)
treef80050fa083b86d7a7d75efd1ae49a04b358666d /src/command_func.h
parentd8e126d98ddc35df0ac97bd35a076edf1cf172c8 (diff)
downloadopenttd-4d93b704d9f0e6e58dac1d97f79a05bd4320c43f.tar.xz
(svn r18866) -Codechange: remove the CmdFailed(ret)/CmdSucceeded(ret) wrapper functions
Diffstat (limited to 'src/command_func.h')
-rw-r--r--src/command_func.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/command_func.h b/src/command_func.h
index 69464509b..f5a25d67c 100644
--- a/src/command_func.h
+++ b/src/command_func.h
@@ -16,30 +16,6 @@
#include "company_type.h"
/**
- * Checks if a command failes.
- *
- * As you see the parameter is not a command but the return value of a command,
- * the CommandCost class. This function checks if the command executed by
- * the CommandProc function failed and returns true if it does.
- *
- * @param cost The return value of a CommandProc call
- * @return true if the command failes
- * @see CmdSucceded
- */
-static inline bool CmdFailed(CommandCost cost) { return cost.Failed(); }
-
-/**
- * Checks if a command succeeded.
- *
- * As #CmdFailed this function checks if a command succeeded
- *
- * @param cost The return value of a CommandProc call
- * @return true if the command succeeded
- * @see CmdSucceeded
- */
-static inline bool CmdSucceeded(CommandCost cost) { return cost.Succeeded(); }
-
-/**
* Define a default return value for a failed command.
*
* This variable contains a CommandCost object with is declared as "failed".