summaryrefslogtreecommitdiff
path: root/src/helpers.hpp
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2007-11-20 14:11:19 +0000
committerskidd13 <skidd13@openttd.org>2007-11-20 14:11:19 +0000
commita91c2a4c395fc532ada8a097ff05b41d69d7ee3d (patch)
tree4c9dc0c05cd700da1675c02c334dcc834adf512c /src/helpers.hpp
parenteeaa348f8bfafae1a6e56b857a97d9d23577dcac (diff)
downloadopenttd-a91c2a4c395fc532ada8a097ff05b41d69d7ee3d.tar.xz
(svn r11485) -Codechange: Remove the doubled function ToggleBitT and rename the remaining to fit with the naming style
Diffstat (limited to 'src/helpers.hpp')
-rw-r--r--src/helpers.hpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/helpers.hpp b/src/helpers.hpp
index e873d38ee..cb9bd1dcc 100644
--- a/src/helpers.hpp
+++ b/src/helpers.hpp
@@ -149,11 +149,6 @@ template <typename Tenum_t> struct TinyEnumT
}
};
-template <typename T> void ToggleBitT(T &t, int bit_index)
-{
- t = (T)(t ^ ((T)1 << bit_index));
-}
-
/**
* Overflow safe template for integers, i.e. integers that will never overflow
* you multiply the maximum value with 2, or add 2, or substract somethng from