aboutsummaryrefslogtreecommitdiffstats
path: root/search.c
diff options
context:
space:
mode:
authorWynn Wolf Arbor2020-03-18 19:46:53 +0100
committerWolfgang Müller2021-04-27 12:28:35 +0200
commitc0f391e648f52cd9b8fa6e534a2f97a8ba0f46a9 (patch)
tree953c484d4a75cfcff94bdb3184b33136ef72ea4f /search.c
parent26a8c6ced076b6a49b130deb4fe35d6707bebbae (diff)
downloadcwm-c0f391e648f52cd9b8fa6e534a2f97a8ba0f46a9.tar.gz
Remove wm menu
Whilst arguably useful for certain people, or in rare cases, this functionality is not needed in the general case. This will also remove a memory leak where fallback was not properly freed.
Diffstat (limited to 'search.c')
-rw-r--r--search.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/search.c b/search.c
index df6f74c..7cb6167 100644
--- a/search.c
+++ b/search.c
@@ -218,21 +218,6 @@ search_match_text(struct menu_q *menuq, struct menu_q *resultq, char *search)
}
void
-search_match_wm(struct menu_q *menuq, struct menu_q *resultq, char *search)
-{
- struct menu *mi;
- struct cmd_ctx *wm;
-
- TAILQ_INIT(resultq);
- TAILQ_FOREACH(mi, menuq, entry) {
- wm = (struct cmd_ctx *)mi->ctx;
- if ((match_substr(search, wm->name, 0)) ||
- (match_substr(search, wm->path, 0)))
- TAILQ_INSERT_TAIL(resultq, mi, resultentry);
- }
-}
-
-void
search_print_client(struct menu *mi, int listing)
{
struct client_ctx *cc = (struct client_ctx *)mi->ctx;
@@ -271,12 +256,3 @@ search_print_text(struct menu *mi, int listing)
{
(void)snprintf(mi->print, sizeof(mi->print), "%s", mi->text);
}
-
-void
-search_print_wm(struct menu *mi, int listing)
-{
- struct cmd_ctx *wm = (struct cmd_ctx *)mi->ctx;
-
- (void)snprintf(mi->print, sizeof(mi->print), "%s [%s]",
- wm->name, wm->path);
-}