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:
1 parent
005af9c2c3
commit
8cf12e8931
2 files changed
+2
-75
No files matched your search
@@ -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";
|
||||
|
||||
Reference in new issue
Block a user