backup helper: Don't remove previous backup

The backup helper is no longer supposed to override
previous backups.
This commit is contained in:
Martchus 2017-08-17 18:46:15 +02:00
parent 1b96ab15fd
commit cb46cac637
1 changed files with 0 additions and 2 deletions

View File

@ -182,8 +182,6 @@ void createBackupFile(const std::string &originalPath, std::string &backupPath,
} // else: the backup file already exists -> find another file name
}
// remove backup file if already exists
std::remove(backupPath.c_str());
// ensure original file is closed
if(originalStream.is_open()) {
originalStream.close();