From 5d387101b9a480cd0a2013ddc45479f2323d88f0 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 3 Apr 2023 04:32:17 +0300 Subject: [PATCH] engine: client: remove unused Key_IsBind --- engine/client/client.h | 1 - engine/client/keys.c | 12 ------------ 2 files changed, 13 deletions(-) diff --git a/engine/client/client.h b/engine/client/client.h index f07a78db..a354bfa4 100644 --- a/engine/client/client.h +++ b/engine/client/client.h @@ -1155,7 +1155,6 @@ void CL_PlayVideo_f( void ); // keys.c // int Key_IsDown( int keynum ); -const char *Key_IsBind( int keynum ); void Key_Event( int key, int down ); void Key_Init( void ); void Key_WriteBindings( file_t *f ); diff --git a/engine/client/keys.c b/engine/client/keys.c index 2f53ac88..9c65d3d7 100644 --- a/engine/client/keys.c +++ b/engine/client/keys.c @@ -159,18 +159,6 @@ int GAME_EXPORT Key_IsDown( int keynum ) 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