summaryrefslogtreecommitdiff
path: root/src/helpers.hpp
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2007-11-22 18:01:51 +0000
committerskidd13 <skidd13@openttd.org>2007-11-22 18:01:51 +0000
commit737aec4db6e6368939b22d5e4afd3b9822ddc27e (patch)
tree15f9fac500ca3b0c918974cf4e78ed3670542e47 /src/helpers.hpp
parent1d56af1d33292e92fc7536044dbf37d7d45de303 (diff)
downloadopenttd-737aec4db6e6368939b22d5e4afd3b9822ddc27e.tar.xz
(svn r11490) -Codechange: Split the math functions to their own header
-Codechange: Replace the rest of the math macros with functions
Diffstat (limited to 'src/helpers.hpp')
-rw-r--r--src/helpers.hpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/helpers.hpp b/src/helpers.hpp
index cb9bd1dcc..3edbcf3b8 100644
--- a/src/helpers.hpp
+++ b/src/helpers.hpp
@@ -39,9 +39,6 @@ template<typename T> void Swap(T& a, T& b)
}
-/** returns the (absolute) difference between two (scalar) variables */
-template <typename T> static inline T delta(T a, T b) { return a < b ? b - a : a - b; }
-
/** Some enums need to have allowed incrementing (i.e. StationClassID) */
#define DECLARE_POSTFIX_INCREMENT(type) \
FORCEINLINE type operator ++(type& e, int) \