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 ); void Sys_Mkdir( const char* path );
const char* Sys_Cwd(); const char* Sys_Cwd();
const char* Sys_GetCurrentUser();
const char* Sys_DefaultHomePath(); const char* Sys_DefaultHomePath();
char** Sys_ListFiles( const char *directory, const char *extension, const char *filter, int *numfiles, qbool wantsubs ); 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 ); Cmd_AddCommand( "in_restart", Sys_In_Restart_f );
#endif #endif
Cvar_Set( "arch", OS_STRING " " ARCH_STRING ); 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 ) 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() const char* Sys_DefaultHomePath()
{ {
return NULL; 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 EDIT_ID 100
#define INPUT_ID 101 #define INPUT_ID 101
#define CONSOLE_WIDTH 78
typedef struct typedef struct
{ {
HWND hWnd; HWND hWnd;
@ -501,11 +499,8 @@ void Sys_CreateConsole( void )
SetForegroundWindow( s_wcd.hWnd ); SetForegroundWindow( s_wcd.hWnd );
SetFocus( s_wcd.hwndInputLine ); 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] ); Field_Clear( &s_wcd.historyEditLines[i] );
s_wcd.historyEditLines[i].widthInChars = CONSOLE_WIDTH;
}
s_wcd.historyLine = 0; s_wcd.historyLine = 0;
s_wcd.nextHistoryLine = 0; s_wcd.nextHistoryLine = 0;