Codechange: Remove unused FioTarFirstDir and FioTarAddLink functions

This commit is contained in:
Alberth 2019-07-21 11:53:07 +02:00 committed by Charles Pigott
parent 331eba544a
commit 5981ed248a
2 changed files with 0 additions and 19 deletions

View File

@ -565,18 +565,6 @@ bool AppendPathSeparator(char *buf, const char *last)
return true;
}
/**
* Find the first directory in a tar archive.
* @param tarname the name of the tar archive to look in.
* @param subdir the subdirectory to look in.
*/
const char *FioTarFirstDir(const char *tarname, Subdirectory subdir)
{
TarList::iterator it = _tar_list[subdir].find(tarname);
if (it == _tar_list[subdir].end()) return nullptr;
return (*it).second.dirname;
}
static void TarAddLink(const std::string &srcParam, const std::string &destParam, Subdirectory subdir)
{
std::string src = srcParam;
@ -598,11 +586,6 @@ static void TarAddLink(const std::string &srcParam, const std::string &destParam
}
}
void FioTarAddLink(const char *src, const char *dest, Subdirectory subdir)
{
TarAddLink(src, dest, subdir);
}
/**
* Simplify filenames from tars.
* Replace '/' by #PATHSEPCHAR, and force 'name' to lowercase.

View File

@ -64,8 +64,6 @@ bool AppendPathSeparator(char *buf, const char *last);
void DeterminePaths(const char *exe);
void *ReadFileToMem(const char *filename, size_t *lenp, size_t maxsize);
bool FileExists(const char *filename);
const char *FioTarFirstDir(const char *tarname, Subdirectory subdir);
void FioTarAddLink(const char *src, const char *dest, Subdirectory subdir);
bool ExtractTar(const char *tar_filename, Subdirectory subdir);
extern const char *_personal_dir; ///< custom directory for personal settings, saves, newgrf, etc.