Permalink
Browse files

Remove unused function.

find_frame_window() has been introduced as part of commit da92f07, and
has never been used.
  • Loading branch information...
bket authored and LordReg committed Nov 19, 2018
1 parent b365987 commit 30f82ac5eac66364541263b1d94f220f74ece59e
Showing with 0 additions and 17 deletions.
  1. +0 −17 spectrwm.c
@@ -1080,7 +1080,6 @@ char *expand_tilde(const char *);
void expose(xcb_expose_event_t *);
void fake_keypress(struct ws_win *, xcb_keysym_t, uint16_t);
struct swm_bar *find_bar(xcb_window_t);
struct ws_win *find_frame_window(xcb_window_t);
struct pid_e *find_pid(pid_t);
struct swm_region *find_region(xcb_window_t);
struct ws_win *find_unmanaged_window(xcb_window_t);
@@ -3802,22 +3801,6 @@ find_bar(xcb_window_t id)
return (NULL);
}

struct ws_win *
find_frame_window(xcb_window_t id) {
struct swm_region *r;
struct ws_win *w;
int i, num_screens;

num_screens = get_screen_count();
for (i = 0; i < num_screens; i++)
TAILQ_FOREACH(r, &screens[i].rl, entry)
TAILQ_FOREACH(w, &r->ws->winlist, entry)
if (w->frame == id)
return (w);

return (NULL);
}

struct ws_win *
find_window(xcb_window_t id)
{

0 comments on commit 30f82ac

Please sign in to comment.