Explorar el Código

Removed unused copyEnvironmentVariable function.

Ryan C. Gordon hace 24 años
padre
commit
bed1042f88
Se han modificado 1 ficheros con 0 adiciones y 16 borrados
  1. 0 16
      platform/win32.c

+ 0 - 16
platform/win32.c

@@ -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;