Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2020-09-24 19:22:30 +0300
committerHans Goudey <h.goudey@me.com>2020-09-24 19:22:30 +0300
commit7fb0cb2b9320a1751779b5906c68a7cffdbcd71e (patch)
treebafcac83b277844f1794debefbce57620cda8482 /source/blender/editors/interface/interface.c
parentbdbe95578d54971d9e0c4957bdc3367ebae44363 (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.c5
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;