From 17dcb835103ac05012c5a7eafa8c7702cef53390 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 11 Mar 2013 18:09:33 +0300 Subject: Add some fixes after automatic checks. --- src/client.cpp | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/client.cpp') 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; -- cgit v1.2.3-70-g09d2