Bug 764774 - Remove unused variable and object creation from nsParserUtils. r=smaug.
☠☠ backed out by bc082ae74492 ☠ ☠
authorHenri Sivonen <hsivonen@iki.fi>
Thu, 14 Jun 2012 15:18:58 +0300
changeset 96674 4d93e6ed8a4924af60e7b32ccf10e670d1b5a206
parent 96673 1554b33212cb51a340603381b369619ce8c3385c
child 96675 e7a1d56f7ccfbc5fa768a77a4aff1b59ff6ddf91
push id10656
push userhsivonen@iki.fi
push dateThu, 14 Jun 2012 12:19:35 +0000
treeherdermozilla-inbound@4d93e6ed8a49 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs764774
milestone16.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 764774 - Remove unused variable and object creation from nsParserUtils. r=smaug.
parser/html/nsParserUtils.cpp
--- a/parser/html/nsParserUtils.cpp
+++ b/parser/html/nsParserUtils.cpp
@@ -133,19 +133,16 @@ nsParserUtils::ParseFragment(const nsASt
                              nsIURI* aBaseURI,
                              nsIDOMElement* aContextElement,
                              nsIDOMDocumentFragment** aReturn)
 {
   NS_ENSURE_ARG(aContextElement);
   *aReturn = nsnull;
 
   nsresult rv;
-  nsCOMPtr<nsIParser> parser = do_CreateInstance(kCParserCID, &rv);
-  NS_ENSURE_SUCCESS(rv, rv);
-
   nsCOMPtr<nsIDocument> document;
   nsCOMPtr<nsIDOMDocument> domDocument;
   nsCOMPtr<nsIDOMNode> contextNode;
   contextNode = do_QueryInterface(aContextElement);
   contextNode->GetOwnerDocument(getter_AddRefs(domDocument));
   document = do_QueryInterface(domDocument);
   NS_ENSURE_TRUE(document, NS_ERROR_NOT_AVAILABLE);