ecore-xcb: Fix 'variable set but not used' message

Summary: As we do not use the returned Ecore_Event here, there is no
need to assign it

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-02-27 09:44:16 -05:00
parent 5f1ea9403f
commit 99e0695e42
1 changed files with 2 additions and 4 deletions

View File

@ -2521,7 +2521,6 @@ _ecore_xcb_event_mouse_move(uint16_t timestamp,
int16_t mry)
{
Ecore_Event_Mouse_Move *e;
Ecore_Event *event;
if (!(e = malloc(sizeof(Ecore_Event_Mouse_Move)))) return;
@ -2546,14 +2545,13 @@ _ecore_xcb_event_mouse_move(uint16_t timestamp,
e->multi.root.x = mrx;
e->multi.root.y = mry;
event = ecore_event_add(ECORE_EVENT_MOUSE_MOVE, e,
_ecore_xcb_event_mouse_move_free, NULL);
ecore_event_add(ECORE_EVENT_MOUSE_MOVE, e,
_ecore_xcb_event_mouse_move_free, NULL);
_ecore_xcb_event_last_time = e->timestamp;
_ecore_xcb_event_last_window = e->window;
_ecore_xcb_event_last_root_x = root_x;
_ecore_xcb_event_last_root_y = root_y;
// _ecore_xcb_event_last_mouse_move_event = event;
}
static void