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/interface/interface.c | |
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/interface/interface.c')
-rw-r--r-- | source/blender/editors/interface/interface.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index f0d19c38537..433058260f7 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -3594,11 +3594,6 @@ void UI_block_set_search_only(uiBlock *block, bool search_only) SET_FLAG_FROM_TEST(block->flag, search_only, UI_BLOCK_SEARCH_ONLY); } -void UI_block_set_search_filter(uiBlock *block, const char *search_filter) -{ - block->search_filter = search_filter; -} - static void ui_but_build_drawstr_float(uiBut *but, double value) { size_t slen = 0; |