mirror of
https://github.com/tmate-io/tmate.git
synced 2026-07-28 13:23:50 +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
2 changed files with 0 additions and 5 deletions
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->size = size;
|
||||
if (gettimeofday(&pb->tv, NULL) != 0)
|
||||
fatal("gettimeofday failed");
|
||||
}
|
||||
|
||||
int
|
||||
|
|
@ -133,8 +131,6 @@ paste_replace(struct paste_stack *ps, u_int idx, u_char *data, size_t size)
|
|||
|
||||
pb->data = data;
|
||||
pb->size = size;
|
||||
if (gettimeofday(&pb->tv, NULL) != 0)
|
||||
fatal("gettimeofday failed");
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
|
|
|||
1
tmux.h
1
tmux.h
|
|
@ -893,7 +893,6 @@ struct layout_cell {
|
|||
struct paste_buffer {
|
||||
char *data;
|
||||
size_t size;
|
||||
struct timeval tv;
|
||||
};
|
||||
ARRAY_DECL(paste_stack, struct paste_buffer *);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue