diff options
author | Subhransu Mohanty <smohantty@gmail.com> | 2020-06-17 06:36:02 +0000 |
---|---|---|
committer | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2020-06-17 08:56:11 +0200 |
commit | 95eb621c15462e54ba9b092bca6ceec2a0fb3a1a (patch) | |
tree | e617b647a944aa4bee905df6d1bcc767ba850195 /src/lib | |
parent | 2b8742c0ab1ec1d129b1114ca21f23a149f44d87 (diff) |
elementary/perf:remove unnecessary elm_widget_is() check
As we always make sure the parent is a widget class we don't have to check anymore.
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Reviewed-by: Hermet Park <<hermetpark@gmail.com>>
Differential Revision: https://phab.enlightenment.org/D11985
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/elementary/efl_ui_widget.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/elementary/efl_ui_widget.c b/src/lib/elementary/efl_ui_widget.c index 4b0b8db781..c2a0af7ce7 100644 --- a/src/lib/elementary/efl_ui_widget.c +++ b/src/lib/elementary/efl_ui_widget.c | |||
@@ -2356,7 +2356,7 @@ _efl_ui_widget_efl_gfx_entity_scale_get(const Eo *obj EINA_UNUSED, Elm_Widget_Sm | |||
2356 | // FIXME: save walking up the tree by storing/caching parent scale | 2356 | // FIXME: save walking up the tree by storing/caching parent scale |
2357 | if (EINA_DBL_EQ(sd->scale, 0.0)) | 2357 | if (EINA_DBL_EQ(sd->scale, 0.0)) |
2358 | { | 2358 | { |
2359 | if (sd->parent_obj && elm_widget_is(sd->parent_obj)) | 2359 | if (sd->parent_obj) |
2360 | { | 2360 | { |
2361 | return efl_gfx_entity_scale_get(sd->parent_obj); | 2361 | return efl_gfx_entity_scale_get(sd->parent_obj); |
2362 | } | 2362 | } |
@@ -2621,7 +2621,7 @@ elm_widget_theme_get(const Evas_Object *obj) | |||
2621 | 2621 | ||
2622 | if (!sd->theme) | 2622 | if (!sd->theme) |
2623 | { | 2623 | { |
2624 | if (sd->parent_obj && elm_widget_is(sd->parent_obj)) | 2624 | if (sd->parent_obj) |
2625 | return elm_widget_theme_get(sd->parent_obj); | 2625 | return elm_widget_theme_get(sd->parent_obj); |
2626 | else return NULL; | 2626 | else return NULL; |
2627 | } | 2627 | } |
@@ -5263,7 +5263,7 @@ elm_widget_show_region_set(Eo *obj, Eina_Rect sr, Eina_Bool forceshow) | |||
5263 | do | 5263 | do |
5264 | { | 5264 | { |
5265 | parent_obj = sd->parent_obj; | 5265 | parent_obj = sd->parent_obj; |
5266 | if ((!parent_obj) || (!_elm_widget_is(parent_obj))) break; | 5266 | if ((!parent_obj)) break; |
5267 | sd = efl_data_scope_get(parent_obj, MY_CLASS); | 5267 | sd = efl_data_scope_get(parent_obj, MY_CLASS); |
5268 | if (!sd) break; | 5268 | if (!sd) break; |
5269 | 5269 | ||