From d22326a3bbece1e4e38c225c7008124e9702a3cd Mon Sep 17 00:00:00 2001 From: Andrew McCreight Date: Thu, 10 Apr 2014 07:05:19 -0700 Subject: [PATCH] Bug 990715, part 3 - Inline RemoveObjectEntry in nsBindingManager. r=bholley --- dom/xbl/nsBindingManager.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/dom/xbl/nsBindingManager.cpp b/dom/xbl/nsBindingManager.cpp index 144add34198..d13b84c4e0a 100644 --- a/dom/xbl/nsBindingManager.cpp +++ b/dom/xbl/nsBindingManager.cpp @@ -121,12 +121,6 @@ LookupObject(PLDHashTable& table, nsIContent* aKey) return nullptr; } -inline void -RemoveObjectEntry(PLDHashTable& table, nsISupports* aKey) -{ - PL_DHashTableOperate(&table, aKey, PL_DHASH_REMOVE); -} - static nsresult SetOrRemoveObject(PLDHashTable& table, nsIContent* aKey, nsISupports* aValue) { @@ -166,7 +160,7 @@ SetOrRemoveObject(PLDHashTable& table, nsIContent* aKey, nsISupports* aValue) // Keep key and value alive while removing the entry. nsCOMPtr key = entry->GetKey(); nsCOMPtr value = entry->GetValue(); - RemoveObjectEntry(table, aKey); + PL_DHashTableOperate(&table, aKey, PL_DHASH_REMOVE); } } return NS_OK;