diff options
author | frosch <frosch@openttd.org> | 2017-12-27 22:07:59 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2017-12-27 22:07:59 +0000 |
commit | 2e20751c5faca6f9b1d67b2fcbca79c02324497f (patch) | |
tree | 3583e584211bbe9db8812106c2c212b10a4a074d /src | |
parent | 1bc6fdef3146dd1850f9f54c4ac41da4d469eb77 (diff) | |
download | openttd-2e20751c5faca6f9b1d67b2fcbca79c02324497f.tar.xz |
(svn r27954) -Cleanup [FS#6644]: Remove unused function (M3Henry)
Diffstat (limited to 'src')
-rw-r--r-- | src/fileio.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp index 526f5b184..0590efd3a 100644 --- a/src/fileio.cpp +++ b/src/fileio.cpp @@ -585,32 +585,6 @@ bool AppendPathSeparator(char *buf, const char *last) } /** - * Allocates and files a variable with the full path - * based on the given directory. - * @param dir the directory to base the path on - * @return the malloced full path - */ -char *BuildWithFullPath(const char *dir) -{ - char *dest = MallocT<char>(MAX_PATH); - char *last = dest + MAX_PATH - 1; - strecpy(dest, dir, last); - - /* Check if absolute or relative path */ - const char *s = strchr(dest, PATHSEPCHAR); - - /* Add absolute path */ - if (s == NULL || dest != s) { - if (getcwd(dest, MAX_PATH) == NULL) *dest = '\0'; - AppendPathSeparator(dest, last); - strecat(dest, dir, last); - } - AppendPathSeparator(dest, last); - - return dest; -} - -/** * 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. |