Clean up FileUtils.h

This removes some commented out functions and it also
removes CFir::Exists() since CFile::IsDir() does exactly
the same job (and it uses fewer syscalls for that).



git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1042 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-05-08 13:32:34 +00:00
parent 005af9c2c3
commit 8cf12e8931
2 changed files with 2 additions and 75 deletions

View File

@@ -222,7 +222,7 @@ CString CWebAdminSock::GetSkinDir() {
CString sSkinDir = m_pModule->GetModDataDir() + "/skins/"
+ m_pModule->GetSkinName() + "/";
if (CDir::Exists(sSkinDir)) {
if (CFile::IsDir(sSkinDir)) {
return sSkinDir;
}
@@ -556,7 +556,7 @@ bool CWebAdminSock::SettingsPage(CString& sPageRet) {
CString sDir(GetSkinDir() + "/..");
if (CDir::Exists(sDir)) {
if (CFile::IsDir(sDir)) {
CDir Dir(sDir);
m_Template.AddRow("SkinLoop")["Name"] = "default";