Index: src/libchcore/TPathContainer.cpp =================================================================== diff -u -N -rb26ced3298e3e7e51d91f3ac70b56746786da83b -r0d5b67ee96b435d63f7bf075dc8e28603793b187 --- src/libchcore/TPathContainer.cpp (.../TPathContainer.cpp) (revision b26ced3298e3e7e51d91f3ac70b56746786da83b) +++ src/libchcore/TPathContainer.cpp (.../TPathContainer.cpp) (revision 0d5b67ee96b435d63f7bf075dc8e28603793b187) @@ -20,7 +20,7 @@ #include "TPathContainer.h" #include "TCoreException.h" #include "ErrorCodes.h" -#include "TStringArray.h" +#include "../libstring/TStringArray.h" namespace chcore { @@ -159,34 +159,4 @@ { return m_vPaths.empty(); } - - void TPathContainer::StoreInConfig(TConfig& rConfig, PCTSTR pszPropName) const - { - TStringArray vPaths; - - // store as vector of strings (ineffective; should be done better) - for(const TSmartPath& spPath : m_vPaths) - { - vPaths.Add(spPath.ToWString()); - } - - rConfig.SetValue(pszPropName, vPaths); - } - - bool TPathContainer::ReadFromConfig(const TConfig& rConfig, PCTSTR pszPropName) - { - m_vPaths.clear(); - - TStringArray vPaths; - if (rConfig.GetValue(pszPropName, vPaths)) - { - for (size_t stIndex = 0; stIndex < vPaths.GetCount(); ++stIndex) - { - m_vPaths.push_back(PathFromWString(vPaths.GetAt(stIndex))); - } - return true; - } - else - return false; - } }