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 #393master
parent
f0d32125e9
commit
bb9e490316
|
@ -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))
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue