From 2da86dcc9e5d77a24929c021ff48fc8fbd67056a Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Thu, 10 Oct 2013 17:39:52 -0400 Subject: [PATCH] Remove the unused UnexpectedFailure static function to fix my build, no bug --- js/xpconnect/src/XPCWrappedNative.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/js/xpconnect/src/XPCWrappedNative.cpp b/js/xpconnect/src/XPCWrappedNative.cpp index d82e08d912ed..bde14167eaa3 100644 --- a/js/xpconnect/src/XPCWrappedNative.cpp +++ b/js/xpconnect/src/XPCWrappedNative.cpp @@ -2893,12 +2893,6 @@ XPCWrappedNative::HasNativeMember(HandleId name) 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() {