bug 808229 - remove unused NS_ENSURE_ macro and associated success error code r=surkov

This commit is contained in:
Trevor Saunders 2012-11-02 18:36:58 -04:00
parent 721eb8a06b
commit e9211429c0
2 changed files with 1 additions and 13 deletions

View File

@ -20,15 +20,4 @@
return NS_OK; \
} else
#define NS_ENSURE_A11Y_SUCCESS(res, ret) \
PR_BEGIN_MACRO \
nsresult __rv = res; /* Don't evaluate |res| more than once */ \
if (NS_FAILED(__rv)) { \
NS_ENSURE_SUCCESS_BODY(res, ret) \
return ret; \
} \
if (__rv == NS_OK_DEFUNCT_OBJECT) \
return ret; \
PR_END_MACRO
#endif

View File

@ -894,7 +894,6 @@
/* see Accessible::GetAttrValue */
ERROR(NS_OK_NO_ARIA_VALUE, SUCCESS(33)),
ERROR(NS_OK_DEFUNCT_OBJECT, SUCCESS(34)),
/* see nsTextEquivUtils */
ERROR(NS_OK_NO_NAME_CLAUSE_HANDLED, SUCCESS(35))
ERROR(NS_OK_NO_NAME_CLAUSE_HANDLED, SUCCESS(34))
#undef MODULE