Remove unused inVisible() method.
git-svn-id: svn://10.0.0.236/trunk@47577 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
ad5fd15f0c
commit
cbe819b018
@ -162,8 +162,6 @@ friend NS_IMETHODIMP NS_NewInternetSearchService(nsISupports* aOuter, REFNSIID a
|
||||
static nsresult GetData(nsString data, char *sectionToFind, char *attribToFind, nsString &value);
|
||||
nsresult GetInputs(nsString data, nsString text, nsString &input);
|
||||
nsresult GetURL(nsIRDFResource *source, nsIRDFLiteral** aResult);
|
||||
PRBool isVisible(const nsNativeFileSpec& file);
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -1357,40 +1355,6 @@ InternetSearchDataSource::GetSearchEngineList(nsFileSpec nativeDir)
|
||||
|
||||
|
||||
|
||||
PRBool
|
||||
InternetSearchDataSource::isVisible(const nsNativeFileSpec& file)
|
||||
{
|
||||
PRBool isVisible = PR_TRUE;
|
||||
|
||||
#ifdef XP_MAC
|
||||
CInfoPBRec cInfo;
|
||||
OSErr err;
|
||||
|
||||
nsFileSpec fileSpec(file);
|
||||
if (!(err = fileSpec.GetCatInfo(cInfo)))
|
||||
{
|
||||
if (cInfo.hFileInfo.ioFlFndrInfo.fdFlags & kIsInvisible)
|
||||
{
|
||||
isVisible = PR_FALSE;
|
||||
}
|
||||
}
|
||||
#else
|
||||
char *baseFilename = file.GetLeafName();
|
||||
if (nsnull != baseFilename)
|
||||
{
|
||||
if ((!strcmp(baseFilename, ".")) || (!strcmp(baseFilename, "..")))
|
||||
{
|
||||
isVisible = PR_FALSE;
|
||||
}
|
||||
nsCRT::free(baseFilename);
|
||||
}
|
||||
#endif
|
||||
|
||||
return(isVisible);
|
||||
}
|
||||
|
||||
|
||||
|
||||
nsresult
|
||||
InternetSearchDataSource::ReadFileContents(nsFileSpec baseFilename, nsString& sourceContents)
|
||||
{
|
||||
|
||||
@ -162,8 +162,6 @@ friend NS_IMETHODIMP NS_NewInternetSearchService(nsISupports* aOuter, REFNSIID a
|
||||
static nsresult GetData(nsString data, char *sectionToFind, char *attribToFind, nsString &value);
|
||||
nsresult GetInputs(nsString data, nsString text, nsString &input);
|
||||
nsresult GetURL(nsIRDFResource *source, nsIRDFLiteral** aResult);
|
||||
PRBool isVisible(const nsNativeFileSpec& file);
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -1357,40 +1355,6 @@ InternetSearchDataSource::GetSearchEngineList(nsFileSpec nativeDir)
|
||||
|
||||
|
||||
|
||||
PRBool
|
||||
InternetSearchDataSource::isVisible(const nsNativeFileSpec& file)
|
||||
{
|
||||
PRBool isVisible = PR_TRUE;
|
||||
|
||||
#ifdef XP_MAC
|
||||
CInfoPBRec cInfo;
|
||||
OSErr err;
|
||||
|
||||
nsFileSpec fileSpec(file);
|
||||
if (!(err = fileSpec.GetCatInfo(cInfo)))
|
||||
{
|
||||
if (cInfo.hFileInfo.ioFlFndrInfo.fdFlags & kIsInvisible)
|
||||
{
|
||||
isVisible = PR_FALSE;
|
||||
}
|
||||
}
|
||||
#else
|
||||
char *baseFilename = file.GetLeafName();
|
||||
if (nsnull != baseFilename)
|
||||
{
|
||||
if ((!strcmp(baseFilename, ".")) || (!strcmp(baseFilename, "..")))
|
||||
{
|
||||
isVisible = PR_FALSE;
|
||||
}
|
||||
nsCRT::free(baseFilename);
|
||||
}
|
||||
#endif
|
||||
|
||||
return(isVisible);
|
||||
}
|
||||
|
||||
|
||||
|
||||
nsresult
|
||||
InternetSearchDataSource::ReadFileContents(nsFileSpec baseFilename, nsString& sourceContents)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user