From c95f1d1ff951fdfea9057952ecadb25884ba8daa Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 3 Nov 2009 17:17:24 +0000 Subject: [PATCH] tv member of struct paste_buffer is updated but not otherwise used, so remove it. --- paste.c | 4 ---- tmux.h | 1 - 2 files changed, 5 deletions(-) diff --git a/paste.c b/paste.c index 582645d5..142e46cf 100644 --- a/paste.c +++ b/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); } diff --git a/tmux.h b/tmux.h index 6902483c..20a1cbb9 100644 --- a/tmux.h +++ b/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 *);