removed some dead code

This commit is contained in:
myT 2017-06-01 20:49:52 +02:00
parent c3ee3f2a4d
commit b19cd251b9
5 changed files with 1 additions and 25 deletions

View file

@ -967,7 +967,6 @@ void Sys_ShowIP();
void Sys_Mkdir( const char* path );
const char* Sys_Cwd();
const char* Sys_GetCurrentUser();
const char* Sys_DefaultHomePath();
char** Sys_ListFiles( const char *directory, const char *extension, const char *filter, int *numfiles, qbool wantsubs );

View file

@ -804,7 +804,6 @@ void Sys_Init()
Cmd_AddCommand( "in_restart", Sys_In_Restart_f );
#endif
Cvar_Set( "arch", OS_STRING " " ARCH_STRING );
Cvar_Set( "username", Sys_GetCurrentUser() );
}

View file

@ -261,14 +261,3 @@ const char* Sys_DefaultHomePath()
void Sys_ShowConsole( int visLevel, qboolean quitOnClose )
{
}
const char* Sys_GetCurrentUser()
{
const struct passwd* p;
if (!(p = getpwuid(getuid())))
return "player";
return p->pw_name;
}

View file

@ -36,12 +36,6 @@ int Sys_Milliseconds()
}
const char* Sys_GetCurrentUser()
{
return "player";
}
const char* Sys_DefaultHomePath()
{
return NULL;

View file

@ -41,8 +41,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define EDIT_ID 100
#define INPUT_ID 101
#define CONSOLE_WIDTH 78
typedef struct
{
HWND hWnd;
@ -501,11 +499,8 @@ void Sys_CreateConsole( void )
SetForegroundWindow( s_wcd.hWnd );
SetFocus( s_wcd.hwndInputLine );
for ( int i = 0; i < COMMAND_HISTORY; ++i ) {
for ( int i = 0; i < COMMAND_HISTORY; ++i )
Field_Clear( &s_wcd.historyEditLines[i] );
s_wcd.historyEditLines[i].widthInChars = CONSOLE_WIDTH;
}
s_wcd.historyLine = 0;
s_wcd.nextHistoryLine = 0;