From: devilhorns Date: Thu, 24 Nov 2011 23:58:26 +0000 (+0000) Subject: Ecore_X(cb): Remove not-needed variable in key event. Remove unused X-Git-Tag: 2.0_alpha~112^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cbdf836358b97504f85014765ad83076a21e361a;p=framework%2Fuifw%2Fecore.git Ecore_X(cb): Remove not-needed variable in key event. Remove unused goto label. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@65590 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/ecore_x/xcb/ecore_xcb_events.c b/src/lib/ecore_x/xcb/ecore_xcb_events.c index fabf54f..8a18140 100644 --- a/src/lib/ecore_x/xcb/ecore_xcb_events.c +++ b/src/lib/ecore_x/xcb/ecore_xcb_events.c @@ -2342,7 +2342,7 @@ _ecore_xcb_event_key_press(xcb_generic_event_t *event) xcb_keycode_t keycode = 0; xcb_key_press_event_t *xevent; char *keyname = NULL, *key = NULL; - char *compose = NULL, *tmp = NULL; + char *compose = NULL; char compose_buffer[256]; int val = 0; @@ -2372,7 +2372,6 @@ _ecore_xcb_event_key_press(xcb_generic_event_t *event) if (!compose) ERR("Ecore_X cannot convert input key string '%s' to UTF-8. " "Is Eina built with iconv support?", compose_buffer); - tmp = compose; } key = _ecore_xcb_keymap_keysym_to_string(sym); @@ -2404,10 +2403,6 @@ _ecore_xcb_event_key_press(xcb_generic_event_t *event) ecore_event_add(ECORE_EVENT_KEY_DOWN, e, NULL, NULL); } _ecore_xcb_event_last_time = xevent->time; - -on_error: - if (tmp) - free(tmp); } static void