summaryrefslogtreecommitdiff
path: root/src/fileio.cpp
diff options
context:
space:
mode:
authorAlberth <alberth@openttd.org>2019-07-21 11:53:07 +0200
committerCharles Pigott <charlespigott@googlemail.com>2019-07-21 19:11:31 +0100
commit5981ed248a9971ab3df683652fc6a0ec5a3fd11c (patch)
tree9dfcac2bf469cde9b35ef617ace75b0ac0212665 /src/fileio.cpp
parent331eba544a4d87ef269043d41951e289a8a16a32 (diff)
downloadopenttd-5981ed248a9971ab3df683652fc6a0ec5a3fd11c.tar.xz
Codechange: Remove unused FioTarFirstDir and FioTarAddLink functions
Diffstat (limited to 'src/fileio.cpp')
-rw-r--r--src/fileio.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp
index 6980e6d8f..a1a8db8d3 100644
--- a/src/fileio.cpp
+++ b/src/fileio.cpp
@@ -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.