Removed two evil exported functions which I added. Well actually, I added them as inlines, but they somehow changed. So since I don't want them as exports, dust to dust, and ashes to ashes.
git-svn-id: svn://10.0.0.236/trunk@36223 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
|
||||
#include "nsIFileStream.h"
|
||||
#include "nsFileStream.h"
|
||||
#include "nsIComponentManager.h" // For CreateInstance()
|
||||
|
||||
#include "prmem.h"
|
||||
|
||||
@@ -710,32 +709,3 @@ nsresult NS_NewDirectoryIterator(nsIDirectoryIterator** result)
|
||||
return nsDirectoryIteratorImpl::Create(nsnull, nsIDirectoryIterator::GetIID(), (void**)result);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------
|
||||
// Convinence functions for creating instances
|
||||
//----------------------------------------------------------------------------------------
|
||||
nsIFileSpec* NS_CreateFileSpec()
|
||||
{
|
||||
// #include nsIComponentManager.h
|
||||
nsIFileSpec* spec = nsnull;
|
||||
nsresult rv = nsComponentManager::CreateInstance(
|
||||
(const char*)NS_FILESPEC_PROGID,
|
||||
(nsISupports*)nsnull,
|
||||
(const nsID&)nsIFileSpec::GetIID(),
|
||||
(void**)&spec);
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "ERROR: Could not make a file spec.");
|
||||
return spec;
|
||||
}
|
||||
|
||||
nsIDirectoryIterator* NS_CreateDirectoryIterator()
|
||||
{
|
||||
// #include nsIComponentManager.h
|
||||
nsIDirectoryIterator* iter = nsnull;
|
||||
nsresult rv = nsComponentManager::CreateInstance(
|
||||
(const char*)NS_DIRECTORYITERATOR_PROGID,
|
||||
(nsISupports*)nsnull,
|
||||
(const nsID&)nsIDirectoryIterator::GetIID(),
|
||||
(void**)&iter);
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "ERROR: Could not make a directory iterator.");
|
||||
return iter;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user