1
0
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:
Nicholas Marriott 2009-11-03 17:17:24 +00:00
parent 01943062b4
commit c95f1d1ff9
2 changed files with 0 additions and 5 deletions

View File

@ -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);
} }

1
tmux.h
View File

@ -893,7 +893,6 @@ struct layout_cell {
struct paste_buffer { struct paste_buffer {
char *data; char *data;
size_t size; size_t size;
struct timeval tv;
}; };
ARRAY_DECL(paste_stack, struct paste_buffer *); ARRAY_DECL(paste_stack, struct paste_buffer *);