Browse Source

engine: client: remove unused Key_IsBind

pull/2/head
Alibek Omarov 2 years ago
parent
commit
5d387101b9
  1. 1
      engine/client/client.h
  2. 12
      engine/client/keys.c

1
engine/client/client.h

@ -1155,7 +1155,6 @@ void CL_PlayVideo_f( void );
// keys.c // keys.c
// //
int Key_IsDown( int keynum ); int Key_IsDown( int keynum );
const char *Key_IsBind( int keynum );
void Key_Event( int key, int down ); void Key_Event( int key, int down );
void Key_Init( void ); void Key_Init( void );
void Key_WriteBindings( file_t *f ); void Key_WriteBindings( file_t *f );

12
engine/client/keys.c

@ -159,18 +159,6 @@ int GAME_EXPORT Key_IsDown( int keynum )
return keys[keynum].down; return keys[keynum].down;
} }
/*
===================
Key_GetBind
===================
*/
const char *Key_IsBind( int keynum )
{
if( keynum == -1 || !keys[keynum].binding )
return NULL;
return keys[keynum].binding;
}
/* /*
=================== ===================
Key_StringToKeynum Key_StringToKeynum

Loading…
Cancel
Save