aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-11-03 17:17:24 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-11-03 17:17:24 +0000
commitc95f1d1ff951fdfea9057952ecadb25884ba8daa (patch)
tree0060f95405cf4a918dc30d79e3b1421236bde6cb
parent01943062b4f669309d75c9dccf373a798f73751f (diff)
downloadrtmux-c95f1d1ff951fdfea9057952ecadb25884ba8daa.tar.gz
rtmux-c95f1d1ff951fdfea9057952ecadb25884ba8daa.tar.bz2
rtmux-c95f1d1ff951fdfea9057952ecadb25884ba8daa.zip
tv member of struct paste_buffer is updated but not otherwise used, so remove
it.
-rw-r--r--paste.c4
-rw-r--r--tmux.h1
2 files changed, 0 insertions, 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 *);