diff options
author | Hans Goudey <h.goudey@me.com> | 2020-09-24 19:22:30 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-09-24 19:22:30 +0300 |
commit | 7fb0cb2b9320a1751779b5906c68a7cffdbcd71e (patch) | |
tree | bafcac83b277844f1794debefbce57620cda8482 /source/blender/editors/include/UI_interface.h | |
parent | bdbe95578d54971d9e0c4957bdc3367ebae44363 (diff) |
Cleanup: Remove unecessary storage of search filter in uiBlock
Since the search is applied all in one phase, there is no need to store
a reference to the search filter in every uiBlock. Instead just pass it
as an argument to UI_block_apply_search_filter.
Diffstat (limited to 'source/blender/editors/include/UI_interface.h')
-rw-r--r-- | source/blender/editors/include/UI_interface.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h index 7628d8a37c6..c5acb2c1d25 100644 --- a/source/blender/editors/include/UI_interface.h +++ b/source/blender/editors/include/UI_interface.h @@ -676,7 +676,6 @@ char UI_block_emboss_get(uiBlock *block); void UI_block_emboss_set(uiBlock *block, char emboss); bool UI_block_is_search_only(const uiBlock *block); void UI_block_set_search_only(uiBlock *block, bool search_only); -void UI_block_set_search_filter(uiBlock *block, const char *search_filter); void UI_block_free(const struct bContext *C, uiBlock *block); void UI_blocklist_free(const struct bContext *C, struct ListBase *lb); @@ -1870,7 +1869,7 @@ uiLayout *UI_block_layout(uiBlock *block, void UI_block_layout_set_current(uiBlock *block, uiLayout *layout); void UI_block_layout_resolve(uiBlock *block, int *r_x, int *r_y); -bool UI_block_apply_search_filter(uiBlock *block); +bool UI_block_apply_search_filter(uiBlock *block, const char *search_filter); void UI_region_message_subscribe(struct ARegion *region, struct wmMsgBus *mbus); |