Changeset - r23784:e7da678bbf54
[Not reviewed]
master
0 2 0
Alberth - 5 years ago 2019-07-21 09:53:07
alberth@openttd.org
Codechange: Remove unused FioTarFirstDir and FioTarAddLink functions
2 files changed with 0 insertions and 19 deletions:
0 comments (0 inline, 0 general)
src/fileio.cpp
Show inline comments
 
@@ -565,18 +565,6 @@ bool AppendPathSeparator(char *buf, cons
 
	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
 
	}
 
}
 

	
 
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.
src/fileio_func.h
Show inline comments
 
@@ -64,8 +64,6 @@ bool AppendPathSeparator(char *buf, cons
 
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.
0 comments (0 inline, 0 general)