mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Codechange: Remove unused FioTarFirstDir and FioTarAddLink functions
This commit is contained in:
parent
331eba544a
commit
5981ed248a
@ -565,18 +565,6 @@ bool AppendPathSeparator(char *buf, const char *last)
|
|||||||
return true;
|
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)
|
static void TarAddLink(const std::string &srcParam, const std::string &destParam, Subdirectory subdir)
|
||||||
{
|
{
|
||||||
std::string src = srcParam;
|
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.
|
* Simplify filenames from tars.
|
||||||
* Replace '/' by #PATHSEPCHAR, and force 'name' to lowercase.
|
* Replace '/' by #PATHSEPCHAR, and force 'name' to lowercase.
|
||||||
|
@ -64,8 +64,6 @@ bool AppendPathSeparator(char *buf, const char *last);
|
|||||||
void DeterminePaths(const char *exe);
|
void DeterminePaths(const char *exe);
|
||||||
void *ReadFileToMem(const char *filename, size_t *lenp, size_t maxsize);
|
void *ReadFileToMem(const char *filename, size_t *lenp, size_t maxsize);
|
||||||
bool FileExists(const char *filename);
|
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);
|
bool ExtractTar(const char *tar_filename, Subdirectory subdir);
|
||||||
|
|
||||||
extern const char *_personal_dir; ///< custom directory for personal settings, saves, newgrf, etc.
|
extern const char *_personal_dir; ///< custom directory for personal settings, saves, newgrf, etc.
|
||||||
|
Loading…
Reference in New Issue
Block a user