mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-17 01:21:12 +00:00
filesystem: remove unused Com_FilePath
This commit is contained in:
parent
6479b41be7
commit
ab198a962e
1 changed files with 0 additions and 29 deletions
|
@ -197,35 +197,6 @@ static voidpf ZCALLBACK fopen_file_func_utf(voidpf opaque, const char *filename,
|
|||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Returns the path up to, but not including the last '/'.
|
||||
*/
|
||||
static void
|
||||
Com_FilePath(const char *path, char *dst, int dstSize)
|
||||
{
|
||||
char *pos; /* Position of the last '/'. */
|
||||
|
||||
if ((pos = strrchr(path, '/')) != NULL)
|
||||
{
|
||||
pos--;
|
||||
|
||||
if ((pos - path) < dstSize)
|
||||
{
|
||||
memcpy(dst, path, pos - path);
|
||||
dst[pos - path] = '\0';
|
||||
}
|
||||
else
|
||||
{
|
||||
Com_Printf("Com_FilePath: not enough space.\n");
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Q_strlcpy(dst, path, dstSize);
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
FS_FileLength(FILE *f)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue