Removed unused copyEnvironmentVariable function.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 12 Apr 2002 23:51:47 +0000
changeset 197 b59917ad3bae
parent 196 146f35f06992
child 198 39274fb69c25
Removed unused copyEnvironmentVariable function.
platform/win32.c
--- a/platform/win32.c	Fri Apr 12 23:50:20 2002 +0000
+++ b/platform/win32.c	Fri Apr 12 23:51:47 2002 +0000
@@ -142,22 +142,6 @@
 } /* __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;