seoz pushed a commit to branch master.

commit d72a711444712c15c7d9b0833a6c0b64ac308df0
Author: Daniel Juyung Seo <[email protected]>
Date:   Mon May 27 01:20:05 2013 +0900

    elm popup,flipselector: removed unnecessary type casting and type check.
---
 src/lib/elc_popup.c        | 6 +-----
 src/lib/elm_flipselector.c | 4 +---
 2 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/src/lib/elc_popup.c b/src/lib/elc_popup.c
index d86f7f7..1d94b81 100644
--- a/src/lib/elc_popup.c
+++ b/src/lib/elc_popup.c
@@ -824,11 +824,7 @@ _item_signal_emit_hook(Elm_Object_Item *it,
                        const char *emission,
                        const char *source)
 {
-   Elm_Popup_Item *item = (Elm_Popup_Item *)it;
-
-   ELM_POPUP_ITEM_CHECK_OR_RETURN(it);
-
-   edje_object_signal_emit(VIEW(item), emission, source);
+   edje_object_signal_emit(VIEW(it), emission, source);
 }
 
 static void
diff --git a/src/lib/elm_flipselector.c b/src/lib/elm_flipselector.c
index 4a111e1..5fb0403 100644
--- a/src/lib/elm_flipselector.c
+++ b/src/lib/elm_flipselector.c
@@ -152,9 +152,7 @@ _item_signal_emit_hook(Elm_Object_Item *it,
                        const char *emission,
                        const char *source)
 {
-   Elm_Flipselector_Item *item = (Elm_Flipselector_Item *)it;
-
-   edje_object_signal_emit(VIEW(item), emission, source);
+   edje_object_signal_emit(VIEW(it), emission, source);
 }
 
 static inline void

-- 

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may

Reply via email to