Removed unused Copy function

It's not used by the game and causes incombatibility with some version of Boost.
Should fix Travis build, see issue #393
master
krzys-h 2015-03-18 21:45:28 +01:00
parent f0d32125e9
commit bb9e490316
2 changed files with 0 additions and 22 deletions

View File

@ -283,26 +283,6 @@ bool CResourceManager::Move(const std::string& from, const std::string& to)
return false;
}
//TODO: Don't use boost::filesystem. Why doesn't PHYSFS have this?
bool CResourceManager::Copy(const std::string& from, const std::string& to)
{
if(PHYSFS_isInit())
{
bool success = true;
std::string writeDir = PHYSFS_getWriteDir();
try
{
fs::copy(writeDir + "/" + CleanPath(from), writeDir + "/" + CleanPath(to));
}
catch (std::exception & e)
{
success = false;
}
return success;
}
return false;
}
int CResourceManager::SDLClose(SDL_RWops *context)
{
if (CheckSDLContext(context))

View File

@ -65,8 +65,6 @@ public:
//! Move file/directory
static bool Move(const std::string &from, const std::string &to);
//! Copy file/directory
static bool Copy(const std::string &from, const std::string &to);
private:
static int SDLSeek(SDL_RWops *context, int offset, int whence);