mirror of
https://github.com/tmux/tmux.git
synced 2025-01-22 02:55:30 +00:00
tv member of struct paste_buffer is updated but not otherwise used, so remove
it.
This commit is contained in:
parent
01943062b4
commit
c95f1d1ff9
4
paste.c
4
paste.c
@ -116,8 +116,6 @@ paste_add(struct paste_stack *ps, u_char *data, size_t size, u_int limit)
|
|||||||
|
|
||||||
pb->data = data;
|
pb->data = data;
|
||||||
pb->size = size;
|
pb->size = size;
|
||||||
if (gettimeofday(&pb->tv, NULL) != 0)
|
|
||||||
fatal("gettimeofday failed");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -133,8 +131,6 @@ paste_replace(struct paste_stack *ps, u_int idx, u_char *data, size_t size)
|
|||||||
|
|
||||||
pb->data = data;
|
pb->data = data;
|
||||||
pb->size = size;
|
pb->size = size;
|
||||||
if (gettimeofday(&pb->tv, NULL) != 0)
|
|
||||||
fatal("gettimeofday failed");
|
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user