Bug 1279998 - Remove NSCAP_FEATURE_TEST_NONNULL_QUERY_SUCCEEDS. r=froydnj

MozReview-Commit-ID: LbT6922qlHQ

--HG--
extra : rebase_source : f59298236c3905c4c92d261ffe93847584d24bb6
This commit is contained in:
Andrew McCreight 2016-08-01 11:16:19 -07:00
parent 39b37c03c9
commit e5fea6eaa1
2 changed files with 0 additions and 9 deletions

View File

@ -12,10 +12,6 @@ nsQueryInterface::operator()(const nsIID& aIID, void** aAnswer) const
nsresult status;
if (mRawPtr) {
status = mRawPtr->QueryInterface(aIID, aAnswer);
#ifdef NSCAP_FEATURE_TEST_NONNULL_QUERY_SUCCEEDS
NS_ASSERTION(NS_SUCCEEDED(status),
"interface not found---were you expecting that?");
#endif
} else {
status = NS_ERROR_NULL_POINTER;
}
@ -29,10 +25,6 @@ nsQueryInterfaceWithError::operator()(const nsIID& aIID, void** aAnswer) const
nsresult status;
if (mRawPtr) {
status = mRawPtr->QueryInterface(aIID, aAnswer);
#ifdef NSCAP_FEATURE_TEST_NONNULL_QUERY_SUCCEEDS
NS_ASSERTION(NS_SUCCEEDED(status),
"interface not found---were you expecting that?");
#endif
} else {
status = NS_ERROR_NULL_POINTER;
}

View File

@ -56,7 +56,6 @@
#ifdef DEBUG
#define NSCAP_FEATURE_TEST_DONTQUERY_CASES
#undef NSCAP_FEATURE_USE_BASE
//#define NSCAP_FEATURE_TEST_NONNULL_QUERY_SUCCEEDS
#endif
#ifdef __GNUC__