changeset 65:b2cd1fd33bb0

Remove useless macros
author David Demelier <markand@malikania.fr>
date Wed, 09 Nov 2011 20:12:24 +0100
parents 9cc5d6d0563e
children f773c76b1f3c
files pack.c
diffstat 1 files changed, 0 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/pack.c	Wed Nov 09 19:40:20 2011 +0100
+++ b/pack.c	Wed Nov 09 20:12:24 2011 +0100
@@ -70,26 +70,6 @@
 #define LENGTH(x)	(sizeof (x) / sizeof (x[0]))	
 
 /*
- * Macros that converts byte order or keep them if the host matches
- * the byte order requested.
- */
-
-#define CONVERT_UINT16(i) do {						\
-	if (ptype != PACK_HOST_BYTEORDER)				\
-		i = pack_swap16(i); 					\
-} while (/* CONSTCOND */ 0)
-
-#define CONVERT_UINT32(i) do {						\
-	if (ptype != PACK_HOST_BYTEORDER)				\
-		i = pack_swap32(i); 					\
-} while (/* CONSTCOND */ 0)
-
-#define CONVERT_UINT64(i) do {						\
-	if (ptype != PACK_HOST_BYTEORDER)				\
-		i = pack_swap64(i); 					\
-} while (/* CONSTCOND */ 0)
-
-/*
  * Associative structure, the `tok' member is used for the format
  * and define the integer size. The convert function reverse the
  * bytes if it is needed.