bug 513451 remove nsPresShell::EnumeratePlugins, it's been unused since bug 480819

r+sr=roc
This commit is contained in:
Christian Biesinger 2009-09-03 12:37:56 +02:00
parent 411a24dcdd
commit c39efe899d

View File

@ -1263,11 +1263,6 @@ private:
PRPackedBool mAsyncResizeTimerIsActive; PRPackedBool mAsyncResizeTimerIsActive;
PRPackedBool mInResize; PRPackedBool mInResize;
typedef void (*nsPluginEnumCallback)(PresShell*, nsIContent*);
void EnumeratePlugins(nsIDOMDocument *aDocument,
const nsString &aPluginTag,
nsPluginEnumCallback aCallback);
private: private:
/* /*
* Computes the backstop color for the view: transparent if in a transparent * Computes the backstop color for the view: transparent if in a transparent
@ -7407,29 +7402,6 @@ PresShell::Observe(nsISupports* aSubject,
return NS_ERROR_FAILURE; return NS_ERROR_FAILURE;
} }
void
PresShell::EnumeratePlugins(nsIDOMDocument *aDocument,
const nsString &aPluginTag,
nsPluginEnumCallback aCallback)
{
nsCOMPtr<nsIDOMNodeList> nodes;
aDocument->GetElementsByTagName(aPluginTag, getter_AddRefs(nodes));
if (!nodes)
return;
PRUint32 length;
nodes->GetLength(&length);
for (PRUint32 i = 0; i < length; ++i) {
nsCOMPtr<nsIDOMNode> node;
nodes->Item(i, getter_AddRefs(node));
nsCOMPtr<nsIContent> content = do_QueryInterface(node);
if (content)
aCallback(this, content);
}
}
//------------------------------------------------------ //------------------------------------------------------
// End of protected and private methods on the PresShell // End of protected and private methods on the PresShell
//------------------------------------------------------ //------------------------------------------------------