Skip to content

Commit

Permalink
Removed unused copyEnvironmentVariable function.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Apr 12, 2002
1 parent a7c8b22 commit bed1042
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions platform/win32.c
Expand Up @@ -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;
Expand Down

0 comments on commit bed1042

Please sign in to comment.