зеркало из https://github.com/mozilla/gecko-dev.git
Remove an unused function.
This commit is contained in:
Родитель
884084ecad
Коммит
3079b8dc1e
|
@ -275,32 +275,6 @@ nsDownloadManager::GetDataSource(nsIRDFDataSource** aDataSource)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsDownloadManager::AssertProgressInfo()
|
||||
{
|
||||
nsCOMPtr<nsISupports> supports;
|
||||
nsCOMPtr<nsIRDFResource> res;
|
||||
const char* uri;
|
||||
nsCOMPtr<nsIRDFInt> intLiteral;
|
||||
|
||||
gRDFService->GetIntLiteral(DOWNLOADING, getter_AddRefs(intLiteral));
|
||||
nsCOMPtr<nsISimpleEnumerator> downloads;
|
||||
nsresult rv = mDataSource->GetSources(gNC_DownloadState, intLiteral, PR_TRUE, getter_AddRefs(downloads));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
PRBool hasMoreElements;
|
||||
downloads->HasMoreElements(&hasMoreElements);
|
||||
|
||||
while (hasMoreElements) {
|
||||
downloads->GetNext(getter_AddRefs(supports));
|
||||
res = do_QueryInterface(supports);
|
||||
res->GetValueConst(&uri);
|
||||
AssertProgressInfoFor(uri);
|
||||
downloads->HasMoreElements(&hasMoreElements);
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsDownloadManager::AssertProgressInfoFor(const char* aPath)
|
||||
{
|
||||
|
|
|
@ -82,7 +82,6 @@ protected:
|
|||
nsresult GetDownloadsContainer(nsIRDFContainer** aResult);
|
||||
nsresult GetProfileDownloadsFileURL(nsCString& aDownloadsFileURL);
|
||||
nsresult GetDataSource(nsIRDFDataSource** aDataSource);
|
||||
nsresult AssertProgressInfo();
|
||||
nsresult DownloadStarted(const char* aPersistentDescriptor);
|
||||
nsresult AssertProgressInfoFor(const char* aPersistentDescriptor);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче