diff options
author | Ines Almeida <britalmeida@gmail.com> | 2015-05-29 11:27:23 +0300 |
---|---|---|
committer | Ines Almeida <britalmeida@gmail.com> | 2015-05-29 11:27:23 +0300 |
commit | 166408cfe2767bb783a651ddf7ca048dc121a71b (patch) | |
tree | 3362f758cb19b7ea86056a90583a52febd2a913f /source/blender/editors/interface | |
parent | af434fea71c7493a4313637e4eb3f29b22c83839 (diff) |
UI cleanup: removing if, condition was already tested
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r-- | source/blender/editors/interface/interface_regions.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/source/blender/editors/interface/interface_regions.c b/source/blender/editors/interface/interface_regions.c index 3f0dac5f872..3f323de131b 100644 --- a/source/blender/editors/interface/interface_regions.c +++ b/source/blender/editors/interface/interface_regions.c @@ -1045,14 +1045,8 @@ static void ui_searchbox_region_draw_cb(const bContext *UNUSED(C), ARegion *ar) ui_searchbox_butrect(&rect, data, a); /* widget itself */ - if (data->preview) { - ui_draw_preview_item(&data->fstyle, &rect, data->items.names[a], data->items.icons[a], - (a == data->active) ? UI_ACTIVE : 0); - } - else { - ui_draw_menu_item(&data->fstyle, &rect, data->items.names[a], data->items.icons[a], - (a == data->active) ? UI_ACTIVE : 0, data->use_sep); - } + ui_draw_preview_item(&data->fstyle, &rect, data->items.names[a], data->items.icons[a], + (a == data->active) ? UI_ACTIVE : 0); } /* indicate more */ |