From c3053e279b19492ce6f9b6c42f3106c032132a09 Mon Sep 17 00:00:00 2001 From: Nathan Froyd Date: Mon, 28 Jan 2013 21:20:01 -0500 Subject: [PATCH] Bug 835646 - remove NS_{GET,PUT}_{FLOAT,DOUBLE}; r=bsmedberg --- xpcom/io/nsIStreamBufferAccess.idl | 4 ---- 1 file changed, 4 deletions(-) diff --git a/xpcom/io/nsIStreamBufferAccess.idl b/xpcom/io/nsIStreamBufferAccess.idl index fcb486048a3a..618d25faa422 100644 --- a/xpcom/io/nsIStreamBufferAccess.idl +++ b/xpcom/io/nsIStreamBufferAccess.idl @@ -145,14 +145,10 @@ interface nsIStreamBufferAccess : nsISupports #define NS_GET16(p) NS_SWAP16(*(uint16_t*)(p)) #define NS_GET32(p) NS_SWAP32(*(uint32_t*)(p)) #define NS_GET64(p) NS_SWAP64(*(uint64_t*)(p)) -#define NS_GET_FLOAT(p) ((float)NS_SWAP32(*(uint32_t*)(p))) -#define NS_GET_DOUBLE(p) ((double)NS_SWAP64(*(uint64_t*)(p))) #define NS_PUT8(p,x) (*(uint8_t*)(p) = (x)) #define NS_PUT16(p,x) (*(uint16_t*)(p) = NS_SWAP16(x)) #define NS_PUT32(p,x) (*(uint32_t*)(p) = NS_SWAP32(x)) #define NS_PUT64(p,x) (*(uint64_t*)(p) = NS_SWAP64(x)) -#define NS_PUT_FLOAT(p,x) (*(uint32_t*)(p) = NS_SWAP32(*(uint32_t*)&(x))) -#define NS_PUT_DOUBLE(p,x) (*(uint64_t*)(p) = NS_SWAP64(*(uint64_t*)&(x))) %}