Removed unused copyEnvironmentVariable function.

This commit is contained in:
Ryan C. Gordon 2002-04-12 23:51:47 +00:00
parent a7c8b2285c
commit bed1042f88
1 changed files with 0 additions and 16 deletions

View File

@ -142,22 +142,6 @@ char *__PHYSFS_platformGetUserName(void)
} /* __PHYSFS_platformGetUserName */
static char *copyEnvironmentVariable(const char *varname)
{
const char *envr = getenv(varname);
char *retval = NULL;
if (envr != NULL)
{
retval = malloc(strlen(envr) + 1);
if (retval != NULL)
strcpy(retval, envr);
} /* if */
return(retval);
} /* copyEnvironmentVariable */
char *__PHYSFS_platformGetUserDir(void)
{
char *userdir = NULL;