Skip to content

Commit 6d6c9ec

Browse files
committed
Make UI_Search() a static/private function
I thought I would need this but I don't.
1 parent a57b8f3 commit 6d6c9ec

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/ui/search_pane.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ static bool DrawSearchPane(void *pane)
8787
return true;
8888
}
8989

90-
void UI_Search(struct search_pane *sp, const char *needle)
90+
static void PerformSearch(struct search_pane *sp, const char *needle)
9191
{
9292
int idx;
9393

@@ -144,7 +144,7 @@ static bool SearchPaneKeypress(void *pane, int key)
144144
}
145145

146146
if (key != KEY_BACKSPACE) {
147-
UI_Search(sp, sp->input.input);
147+
PerformSearch(sp, sp->input.input);
148148
}
149149

150150
return true;

src/ui/search_pane.h

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ void UI_InitSearchPane(struct search_pane *sp, WINDOW *win,
3232
element_text_func callback,
3333
search_found_func search_found,
3434
void *callback_data);
35-
void UI_Search(struct search_pane *sp, const char *needle);
3635
void UI_SearchAgain(struct search_pane *sp, unsigned int start_index);
3736

3837
#endif /* #ifndef UI__SEARCH_PANE_H_INCLUDED */

0 commit comments

Comments
 (0)