mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
@@ -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