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.
This commit is contained in:
2020-09-24 11:22:30 -05:00
parent bdbe95578d
commit 7fb0cb2b93
5 changed files with 14 additions and 25 deletions

View File

@@ -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;