diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-11 18:09:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-11 18:09:33 +0300 |
commit | 17dcb835103ac05012c5a7eafa8c7702cef53390 (patch) | |
tree | 422c28adfba13f2161fcfc36943a3903e531490b /src/client.cpp | |
parent | 84d53b7bb98bb44696ed1bc2c3f132e51394ac00 (diff) | |
download | plus-17dcb835103ac05012c5a7eafa8c7702cef53390.tar.gz plus-17dcb835103ac05012c5a7eafa8c7702cef53390.tar.bz2 plus-17dcb835103ac05012c5a7eafa8c7702cef53390.tar.xz plus-17dcb835103ac05012c5a7eafa8c7702cef53390.zip |
Add some fixes after automatic checks.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/client.cpp b/src/client.cpp index 2d73b791f..467d49f3b 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -2193,25 +2193,6 @@ void Client::accountLogin(LoginData *const data) const serverConfig.setValue("remember", remember); } -bool Client::copyFile(const std::string &configPath, - const std::string &oldConfigPath) const -{ - FILE *const configFile = fopen(oldConfigPath.c_str(), "r"); - - if (configFile) - { - fclose(configFile); - - std::ifstream ifs(oldConfigPath.c_str(), std::ios::binary); - std::ofstream ofs(configPath.c_str(), std::ios::binary); - ofs << ifs.rdbuf(); - ifs.close(); - ofs.close(); - return true; - } - return false; -} - void Client::storeSafeParameters() const { bool tmpHwaccel; |