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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user