summaryrefslogtreecommitdiff
path: root/src/macros.h
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2007-01-11 12:32:10 +0000
committercelestar <celestar@openttd.org>2007-01-11 12:32:10 +0000
commitc56ee62ade0bf539e0ed5e91e2b1e3f0a9b8ec23 (patch)
tree5641df6933c5082202a0fd343b0195526ff1345c /src/macros.h
parent08de6b082af59087361b5d7e5be67b6e3cd66a82 (diff)
downloadopenttd-c56ee62ade0bf539e0ed5e91e2b1e3f0a9b8ec23.tar.xz
(svn r8056) -Codechange: Remove swap_byte, swap_byte, and siblings (some were not used anyway) and replace them by our SwapT implementation
Diffstat (limited to 'src/macros.h')
-rw-r--r--src/macros.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/macros.h b/src/macros.h
index 07011f14c..63d59eb72 100644
--- a/src/macros.h
+++ b/src/macros.h
@@ -140,13 +140,6 @@ static inline int intxchg_(int *a, int b) { int t = *a; *a = b; return t; }
static inline int uintxchg_(uint *a, uint b) { uint t = *a; *a = b; return t; }
#define uintswap(a,b) ((b) = uintxchg_(&(a), (b)))
-static inline void swap_byte(byte *a, byte *b) { byte t = *a; *a = *b; *b = t; }
-static inline void swap_uint16(uint16 *a, uint16 *b) { uint16 t = *a; *a = *b; *b = t; }
-static inline void swap_int16(int16 *a, int16 *b) { int16 t = *a; *a = *b; *b = t; }
-static inline void swap_uint32(uint32 *a, uint32 *b) { uint32 t = *a; *a = *b; *b = t; }
-static inline void swap_int32(int32 *a, int32 *b) { int32 t = *a; *a = *b; *b = t; }
-static inline void swap_tile(TileIndex *a, TileIndex *b) { TileIndex t = *a; *a = *b; *b = t; }
-
static inline uint16 ReadLE16Aligned(const void* x)
{