src/platform_posix.c
changeset 1249 1a5ef6c908f0
parent 1248 632895970ed6
child 1266 135cb99a06a0
--- a/src/platform_posix.c	Thu Mar 22 00:21:28 2012 -0400
+++ b/src/platform_posix.c	Thu Mar 22 00:27:46 2012 -0400
@@ -78,24 +78,6 @@
 } /* __PHYSFS_platformCopyEnvironmentVariable */
 
 
-static char *getUserNameByUID(void)
-{
-    uid_t uid = getuid();
-    struct passwd *pw;
-    char *retval = NULL;
-
-    pw = getpwuid(uid);
-    if ((pw != NULL) && (pw->pw_name != NULL))
-    {
-        retval = (char *) allocator.Malloc(strlen(pw->pw_name) + 1);
-        if (retval != NULL)
-            strcpy(retval, pw->pw_name);
-    } /* if */
-    
-    return retval;
-} /* getUserNameByUID */
-
-
 static char *getUserDirByUID(void)
 {
     uid_t uid = getuid();
@@ -114,15 +96,6 @@
 } /* getUserDirByUID */
 
 
-char *__PHYSFS_platformGetUserName(void)
-{
-    char *retval = getUserNameByUID();
-    if (retval == NULL)
-        retval = __PHYSFS_platformCopyEnvironmentVariable("USER");
-    return retval;
-} /* __PHYSFS_platformGetUserName */
-
-
 char *__PHYSFS_platformCalcUserDir(void)
 {
     char *retval = __PHYSFS_platformCopyEnvironmentVariable("HOME");