summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-08-10 15:30:50 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-08-10 15:31:48 +0900
commit0889444449c7c776ac216b910ad3a492e6d408b8 (patch)
tree6506eee88223de39779b9b927828f521950ce78f
parent8cb3b79a82b1769cba5a7a10f9937aa18dd65d8a (diff)
downloadefl-0889444449c7c776ac216b910ad3a492e6d408b8.tar.gz
Revert "evas: Optimize out a function call if not required"
This reverts commit 8cb3b79a82b1769cba5a7a10f9937aa18dd65d8a. I shouldn't have pushed this. So wrong. Sorry about the noise.
-rw-r--r--src/lib/evas/canvas/evas_callbacks.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/lib/evas/canvas/evas_callbacks.c b/src/lib/evas/canvas/evas_callbacks.c
index cdd8fc8cea..00a5e6270c 100644
--- a/src/lib/evas/canvas/evas_callbacks.c
+++ b/src/lib/evas/canvas/evas_callbacks.c
@@ -265,7 +265,7 @@ evas_object_event_callback_call(Evas_Object *eo_obj, Evas_Object_Protected_Data
/* new input events */
if (eo_event_desc)
{
- Efl_Event_Flags *pevflags = NULL, evflags;
+ Efl_Event_Flags *pevflags = NULL;
#define EV_CASE(TYPE, NEWTYPE, Type) \
case EVAS_CALLBACK_ ## TYPE: \
@@ -288,14 +288,9 @@ evas_object_event_callback_call(Evas_Object *eo_obj, Evas_Object_Protected_Data
}
#undef EV_CASE
- if (pevflags)
- {
- efl_event_flags_set(eo_event_info, *pevflags);
- evflags = *pevflags;
- }
+ if (pevflags) efl_event_flags_set(eo_event_info, *pevflags);
eo_event_callback_call(eo_obj, eo_event_desc, eo_event_info);
- if (pevflags && (*pevflags != evflags))
- *pevflags = efl_event_flags_get(eo_event_info);
+ if (pevflags) *pevflags = efl_event_flags_get(eo_event_info);
}
/* legacy callbacks - relying on Efl.Canvas.Object events */