mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 11:18:48 +00:00
Remove unused-but-set variables, from Thomas Adam.
This commit is contained in:
parent
bded743706
commit
07d93db427
@ -2217,13 +2217,11 @@ void
|
|||||||
window_copy_start_drag(struct client *c, unused struct mouse_event *m)
|
window_copy_start_drag(struct client *c, unused struct mouse_event *m)
|
||||||
{
|
{
|
||||||
struct window_pane *wp;
|
struct window_pane *wp;
|
||||||
struct window_copy_mode_data *data;
|
|
||||||
u_int x, y;
|
u_int x, y;
|
||||||
|
|
||||||
wp = cmd_mouse_pane(m, NULL, NULL);
|
wp = cmd_mouse_pane(m, NULL, NULL);
|
||||||
if (wp->mode != &window_copy_mode)
|
if (wp->mode != &window_copy_mode)
|
||||||
return;
|
return;
|
||||||
data = wp->modedata;
|
|
||||||
|
|
||||||
if (cmd_mouse_at(wp, m, &x, &y, 1) != 0)
|
if (cmd_mouse_at(wp, m, &x, &y, 1) != 0)
|
||||||
return;
|
return;
|
||||||
@ -2261,12 +2259,10 @@ void
|
|||||||
window_copy_drag_release(unused struct client *c, struct mouse_event *m)
|
window_copy_drag_release(unused struct client *c, struct mouse_event *m)
|
||||||
{
|
{
|
||||||
struct window_pane *wp;
|
struct window_pane *wp;
|
||||||
struct window_copy_mode_data *data;
|
|
||||||
|
|
||||||
wp = cmd_mouse_pane(m, NULL, NULL);
|
wp = cmd_mouse_pane(m, NULL, NULL);
|
||||||
if (wp->mode != &window_copy_mode)
|
if (wp->mode != &window_copy_mode)
|
||||||
return;
|
return;
|
||||||
data = wp->modedata;
|
|
||||||
|
|
||||||
window_copy_copy_selection(wp, NULL);
|
window_copy_copy_selection(wp, NULL);
|
||||||
window_pane_reset_mode(wp);
|
window_pane_reset_mode(wp);
|
||||||
|
Loading…
Reference in New Issue
Block a user