From 2d0c953b1ce0fa2e9a02875ce92cef100bc834b0 Mon Sep 17 00:00:00 2001 From: Cyril Brulebois Date: Thu, 22 Dec 2011 22:31:25 +0100 Subject: xts5: Remove unused variables. Of all the nkeys_* variables, only nkeys_style is actually used, so remove all others. The following warnings go away: | CC xim_save.lo | xim_save.c:185:12: warning: 'nkeys_response' defined but not used [-Wunused-variable] | xim_save.c:197:12: warning: 'nkeys_cbname' defined but not used [-Wunused-variable] | xim_save.c:206:12: warning: 'nkeys_ximtext' defined but not used [-Wunused-variable] | xim_save.c:215:12: warning: 'nkeys_pe_draw' defined but not used [-Wunused-variable] | xim_save.c:223:12: warning: 'nkeys_pe_caret' defined but not used [-Wunused-variable] | xim_save.c:230:12: warning: 'nkeys_st_draw' defined but not used [-Wunused-variable] Signed-off-by: Cyril Brulebois --- xts5/src/xim/xim_save.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/xts5/src/xim/xim_save.c b/xts5/src/xim/xim_save.c index 9c33568d..772db708 100644 --- a/xts5/src/xim/xim_save.c +++ b/xts5/src/xim/xim_save.c @@ -182,7 +182,6 @@ static char *keys_response[] = { "STATUS_STYLE", "RESPONSE", }; -static int nkeys_response = sizeof(keys_response) / sizeof(char *); static char *keys_cbname[] = { "PREEDIT_START", @@ -194,8 +193,6 @@ static char *keys_cbname[] = { "STATUS_DRAW", "GEOMETRY", }; -static int nkeys_cbname = sizeof(keys_cbname) / sizeof(char *); - static char *keys_ximtext[] = { "LENGTH", @@ -203,8 +200,6 @@ static char *keys_ximtext[] = { "IS_WCHAR", "STRING", }; -static int nkeys_ximtext = sizeof(keys_ximtext) / sizeof(char *); - static char *keys_pe_draw[] = { "CARET", @@ -212,22 +207,17 @@ static char *keys_pe_draw[] = { "LENGTH", "TEXT", }; -static int nkeys_pe_draw = sizeof(keys_pe_draw) / sizeof(char *); - static char *keys_pe_caret[] = { "POSITION", "DIRECTION", "STYLE", }; -static int nkeys_pe_caret = sizeof(keys_pe_caret) / sizeof(char *); - static char *keys_st_draw[] = { "TYPE", "DATA", }; -static int nkeys_st_draw = sizeof(keys_st_draw) / sizeof(char *); /***********************************************************/ /* save routines for response routines */ -- cgit v1.2.3