summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/sys_main.c2
-rw-r--r--src/sys/sys_unix.c15
-rw-r--r--src/sys/sys_win32.c21
3 files changed, 0 insertions, 38 deletions
diff --git a/src/sys/sys_main.c b/src/sys/sys_main.c
index 24d501f1..8c28252e 100644
--- a/src/sys/sys_main.c
+++ b/src/sys/sys_main.c
@@ -210,8 +210,6 @@ Sys_Init
void Sys_Init(void)
{
Cmd_AddCommand( "in_restart", Sys_In_Restart_f );
- Cvar_Set( "arch", OS_STRING " " ARCH_STRING );
- Cvar_Set( "username", Sys_GetCurrentUser( ) );
}
/*
diff --git a/src/sys/sys_unix.c b/src/sys/sys_unix.c
index bc3cacf5..fa1efe0c 100644
--- a/src/sys/sys_unix.c
+++ b/src/sys/sys_unix.c
@@ -128,21 +128,6 @@ qboolean Sys_RandomBytes( byte *string, int len )
return qtrue;
}
-/*
-==================
-Sys_GetCurrentUser
-==================
-*/
-char *Sys_GetCurrentUser( void )
-{
- struct passwd *p;
-
- if ( (p = getpwuid( getuid() )) == NULL ) {
- return "player";
- }
- return p->pw_name;
-}
-
#define MEM_THRESHOLD 96*1024*1024
/*
diff --git a/src/sys/sys_win32.c b/src/sys/sys_win32.c
index 6f251299..1a2da73d 100644
--- a/src/sys/sys_win32.c
+++ b/src/sys/sys_win32.c
@@ -171,27 +171,6 @@ qboolean Sys_RandomBytes( byte *string, int len )
return qtrue;
}
-/*
-================
-Sys_GetCurrentUser
-================
-*/
-char *Sys_GetCurrentUser( void )
-{
- static char s_userName[1024];
- unsigned long size = sizeof( s_userName );
-
- if( !GetUserName( s_userName, &size ) )
- strcpy( s_userName, "player" );
-
- if( !s_userName[0] )
- {
- strcpy( s_userName, "player" );
- }
-
- return s_userName;
-}
-
#define MEM_THRESHOLD 96*1024*1024
/*