Remove CZNC::GetConfPath() and rework GetModPath() and GetUserPath()

This removes some unneeded variables.
Idea by kroimon.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1289 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-12-12 15:38:57 +00:00
parent c03bd91589
commit 4b1fbab6eb
2 changed files with 22 additions and 12 deletions
+2 -6
View File
@@ -146,11 +146,10 @@ public:
#endif
const CString& GetStatusPrefix() const { return m_sStatusPrefix; }
const CString& GetCurPath() const { if (!CFile::Exists(m_sCurPath)) { CDir::MakeDir(m_sCurPath); } return m_sCurPath; }
const CString& GetModPath() const { if (!CFile::Exists(m_sModPath)) { CDir::MakeDir(m_sModPath); } return m_sModPath; }
const CString& GetHomePath() const { if (!CFile::Exists(m_sHomePath)) { CDir::MakeDir(m_sHomePath); } return m_sHomePath; }
const CString& GetZNCPath() const { if (!CFile::Exists(m_sZNCPath)) { CDir::MakeDir(m_sZNCPath); } return m_sZNCPath; }
const CString& GetConfPath() const { if (!CFile::Exists(m_sConfPath)) { CDir::MakeDir(m_sConfPath); } return m_sConfPath; }
const CString& GetUserPath() const { if (!CFile::Exists(m_sUserPath)) { CDir::MakeDir(m_sUserPath); } return m_sUserPath; }
CString GetUserPath() const;
CString GetModPath() const;
CString GetPemLocation() const { return GetZNCPath() + "/znc.pem"; }
const CString& GetConfigFile() const { return m_sConfigFile; }
bool WritePemFile(bool bEncPem = false);
@@ -198,11 +197,8 @@ protected:
CSockManager m_Manager;
CString m_sCurPath;
CString m_sModPath;
CString m_sHomePath;
CString m_sZNCPath;
CString m_sConfPath;
CString m_sUserPath;
CString m_sConfigFile;
CString m_sStatusPrefix;