mirror of
https://github.com/tmate-io/tmate.git
synced 2024-12-24 15:48:58 +01:00
Remove some dead code found by clang.
This commit is contained in:
parent
6d86882ed4
commit
8df3035831
@ -41,11 +41,10 @@ int
|
||||
cmd_clear_history_exec(struct cmd *self, struct cmd_ctx *ctx)
|
||||
{
|
||||
struct cmd_target_data *data = self->data;
|
||||
struct winlink *wl;
|
||||
struct window_pane *wp;
|
||||
struct grid *gd;
|
||||
|
||||
if ((wl = cmd_find_pane(ctx, data->target, NULL, &wp)) == NULL)
|
||||
if (cmd_find_pane(ctx, data->target, NULL, &wp) == NULL)
|
||||
return (-1);
|
||||
gd = wp->base.grid;
|
||||
|
||||
|
@ -72,7 +72,6 @@ cmd_swap_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
|
||||
dst_w = dst_wl->window;
|
||||
|
||||
if (data->src == NULL) {
|
||||
src_wl = dst_wl;
|
||||
src_w = dst_w;
|
||||
if (data->chflags & CMD_CHFLAG('D')) {
|
||||
src_wp = TAILQ_NEXT(dst_wp, entry);
|
||||
|
Loading…
Reference in New Issue
Block a user