Remove the unused UnexpectedFailure static function to fix my build, no bug
authorEhsan Akhgari <ehsan@mozilla.com>
Thu, 10 Oct 2013 17:39:52 -0400
changeset 150407 b063d4310a8a98ffed7be9bf9f132039bb1889e9
parent 150406 93e7fdddd724082f0adb9398b1cf3402b16ad9b0
child 150408 de4adb31aeb62b1e6472d63022adca2c8365b227
push id2991
push userkwierso@gmail.com
push dateFri, 11 Oct 2013 02:10:33 +0000
treeherderfx-team@98b44fcfebb2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone27.0a1
Remove the unused UnexpectedFailure static function to fix my build, no bug
js/xpconnect/src/XPCWrappedNative.cpp
--- a/js/xpconnect/src/XPCWrappedNative.cpp
+++ b/js/xpconnect/src/XPCWrappedNative.cpp
@@ -2888,22 +2888,16 @@ NS_IMETHODIMP XPCWrappedNative::FindInte
 NS_IMETHODIMP_(bool)
 XPCWrappedNative::HasNativeMember(HandleId name)
 {
     XPCNativeMember *member = nullptr;
     uint16_t ignored;
     return GetSet()->FindMember(name, &member, &ignored) && !!member;
 }
 
-static inline nsresult UnexpectedFailure(nsresult rv)
-{
-    NS_ERROR("This is not supposed to fail!");
-    return rv;
-}
-
 /* void finishInitForWrappedGlobal (); */
 NS_IMETHODIMP XPCWrappedNative::FinishInitForWrappedGlobal()
 {
     // We can only be called under certain conditions.
     MOZ_ASSERT(mScriptableInfo);
     MOZ_ASSERT(mScriptableInfo->GetFlags().IsGlobalObject());
     MOZ_ASSERT(HasProto());