Bug 819936 trivial followup: remove completely-unused 'nsresult rv' in InMemoryDataSource::GetAllResources. (DONTBUILD because just re-landing w/ fixed bug number)
authorDaniel Holbert <dholbert@cs.stanford.edu>
Tue, 29 Jan 2013 14:30:12 -0800
changeset 120293 a6ec2ed06504
parent 120292 1d3edb5701e2
child 120294 51a772f811e2
push id22136
push userdholbert@mozilla.com
push date2013-01-29 22:37 +0000
treeherdermozilla-inbound@a6ec2ed06504 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs819936
milestone21.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 819936 trivial followup: remove completely-unused 'nsresult rv' in InMemoryDataSource::GetAllResources. (DONTBUILD because just re-landing w/ fixed bug number)
rdf/base/src/nsInMemoryDataSource.cpp
--- a/rdf/base/src/nsInMemoryDataSource.cpp
+++ b/rdf/base/src/nsInMemoryDataSource.cpp
@@ -1753,18 +1753,16 @@ InMemoryDataSource::ResourceEnumerator(P
     static_cast<nsCOMArray<nsIRDFNode>*>(aArg)->AppendObject(entry->mNode);
     return PL_DHASH_NEXT;
 }
 
 
 NS_IMETHODIMP
 InMemoryDataSource::GetAllResources(nsISimpleEnumerator** aResult)
 {
-    nsresult rv;
-
     nsCOMArray<nsIRDFNode> nodes;
     if (!nodes.SetCapacity(mForwardArcs.entryCount)) {
       return NS_ERROR_OUT_OF_MEMORY;
     }
 
     // Enumerate all of our entries into an nsCOMArray
     PL_DHashTableEnumerate(&mForwardArcs, ResourceEnumerator, &nodes);