mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to
the rest to reduce lint output.
This commit is contained in:
@ -319,7 +319,7 @@ session_next_activity(struct session *s, struct winlink *wl)
|
||||
break;
|
||||
if (session_alert_has(s, wl, WINDOW_CONTENT))
|
||||
break;
|
||||
wl = winlink_next(&s->windows, wl);
|
||||
wl = winlink_next(wl);
|
||||
}
|
||||
return (wl);
|
||||
}
|
||||
@ -333,7 +333,7 @@ session_next(struct session *s, int activity)
|
||||
if (s->curw == NULL)
|
||||
return (-1);
|
||||
|
||||
wl = winlink_next(&s->windows, s->curw);
|
||||
wl = winlink_next(s->curw);
|
||||
if (activity)
|
||||
wl = session_next_activity(s, wl);
|
||||
if (wl == NULL) {
|
||||
@ -360,7 +360,7 @@ session_previous_activity(struct session *s, struct winlink *wl)
|
||||
break;
|
||||
if (session_alert_has(s, wl, WINDOW_CONTENT))
|
||||
break;
|
||||
wl = winlink_previous(&s->windows, wl);
|
||||
wl = winlink_previous(wl);
|
||||
}
|
||||
return (wl);
|
||||
}
|
||||
@ -374,7 +374,7 @@ session_previous(struct session *s, int activity)
|
||||
if (s->curw == NULL)
|
||||
return (-1);
|
||||
|
||||
wl = winlink_previous(&s->windows, s->curw);
|
||||
wl = winlink_previous(s->curw);
|
||||
if (activity)
|
||||
wl = session_previous_activity(s, wl);
|
||||
if (wl == NULL) {
|
||||
|
Reference in New Issue
Block a user