Got rid of nsIRDFDocument: we never use it here anyway.

This commit is contained in:
waterson%netscape.com 1999-02-15 19:53:55 +00:00
Родитель 6561ba3f3c
Коммит d03a226d75
2 изменённых файлов: 4 добавлений и 22 удалений

Просмотреть файл

@ -458,7 +458,6 @@ nsDocFactoryImpl::CreateRDFDocument(const char* aContentType, nsIURL* aURL,
nsresult rv = NS_ERROR_FAILURE;
nsIDocument* doc = nsnull;
nsIRDFDocument* rdfDoc = nsnull;
nsIDocumentViewer* docv = nsnull;
nsIRDFContentModelBuilder* builder = nsnull;
@ -472,15 +471,8 @@ nsDocFactoryImpl::CreateRDFDocument(const char* aContentType, nsIURL* aURL,
*/
if (NS_FAILED(rv = nsRepository::CreateInstance(kCXULDocumentCID,
nsnull,
kIRDFDocumentIID,
(void **)&rdfDoc)))
goto done;
// Take the RDF document and set its document type (so it knows
// whether it's handling RDF or XUL.
rdfDoc->SetContentType(aContentType);
if (NS_FAILED(rv = rdfDoc->QueryInterface(kIDocumentIID, (void**) &doc)))
kIDocumentIID,
(void **)&doc)))
goto done;
/*
@ -511,7 +503,6 @@ nsDocFactoryImpl::CreateRDFDocument(const char* aContentType, nsIURL* aURL,
done:
NS_IF_RELEASE(doc);
NS_IF_RELEASE(builder);
NS_IF_RELEASE(rdfDoc);
return rv;
}

Просмотреть файл

@ -458,7 +458,6 @@ nsDocFactoryImpl::CreateRDFDocument(const char* aContentType, nsIURL* aURL,
nsresult rv = NS_ERROR_FAILURE;
nsIDocument* doc = nsnull;
nsIRDFDocument* rdfDoc = nsnull;
nsIDocumentViewer* docv = nsnull;
nsIRDFContentModelBuilder* builder = nsnull;
@ -472,15 +471,8 @@ nsDocFactoryImpl::CreateRDFDocument(const char* aContentType, nsIURL* aURL,
*/
if (NS_FAILED(rv = nsRepository::CreateInstance(kCXULDocumentCID,
nsnull,
kIRDFDocumentIID,
(void **)&rdfDoc)))
goto done;
// Take the RDF document and set its document type (so it knows
// whether it's handling RDF or XUL.
rdfDoc->SetContentType(aContentType);
if (NS_FAILED(rv = rdfDoc->QueryInterface(kIDocumentIID, (void**) &doc)))
kIDocumentIID,
(void **)&doc)))
goto done;
/*
@ -511,7 +503,6 @@ nsDocFactoryImpl::CreateRDFDocument(const char* aContentType, nsIURL* aURL,
done:
NS_IF_RELEASE(doc);
NS_IF_RELEASE(builder);
NS_IF_RELEASE(rdfDoc);
return rv;
}