From 87f514938b474ec05318efecaac28dfce136796a Mon Sep 17 00:00:00 2001 From: "waterson%netscape.com" Date: Thu, 3 Jun 1999 22:03:07 +0000 Subject: [PATCH] Remove NS_IS_ERROR() macro; it's both redundant with NS_FAILED() and wrong. git-svn-id: svn://10.0.0.236/trunk@33616 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/base/nsError.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/mozilla/xpcom/base/nsError.h b/mozilla/xpcom/base/nsError.h index 6c81d3284b4..0f1c791d1e5 100644 --- a/mozilla/xpcom/base/nsError.h +++ b/mozilla/xpcom/base/nsError.h @@ -107,12 +107,6 @@ typedef PRUint32 nsresult; * @name Standard Macros for retrieving error bits */ -#if PR_BYTES_PER_INT == 4 -#define NS_IS_ERROR(err) (((nsresult)(err))<0) -#else -#define NS_IS_ERROR(err) (((((PRUint32)(err)) >> 31) & 0x1) == NS_ERROR_SEVERITY_ERROR) -#endif - #define NS_ERROR_GET_CODE(err) ((err) & 0xffff) #define NS_ERROR_GET_MODULE(err) (((((err) >> 16) - NS_ERROR_MODULE_BASE_OFFSET) & 0x1fff)) #define NS_ERROR_GET_SEVERITY(err) (((err) >> 31) & 0x1)