lib:util: Remove unused ALIGN marcos from byteorder.h
authorAndreas Schneider <asn@samba.org>
Thu, 20 Dec 2018 09:01:03 +0000 (10:01 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 17 May 2019 19:33:25 +0000 (19:33 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/util/byteorder.h

index 8656035693de34d6714165dbc5d1c361edae6100..3933926cf5481a9f91a928465b69e2121526eb4d 100644 (file)
@@ -179,11 +179,6 @@ static __inline__ void st_le32(uint32_t *addr, const uint32_t val)
 #define RSBVAL(buf,pos,val) SBVAL(buf,pos,BREV(val))
 #define RSBVALS(buf,pos,val) SBVALS(buf,pos,BREV(val))
 
-/* Alignment macros. */
-#define ALIGN4(p,base) ((p) + ((4 - (PTR_DIFF((p), (base)) & 3)) & 3))
-#define ALIGN2(p,base) ((p) + ((2 - (PTR_DIFF((p), (base)) & 1)) & 1))
-
-
 /* macros for accessing SMB protocol elements */
 #define VWV(vwv) ((vwv)*2)