diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-11-03 17:17:25 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-11-03 17:17:25 +0000 |
commit | 62955076325b9c14c23349c868f41c5d1bedd977 (patch) | |
tree | cdada3401a71c2b850b208d97371e8e82adef276 | |
parent | e1dbad2aca6d6186c428a3bf598df7b5ee6a13f3 (diff) |
tv member of struct paste_buffer is updated but not otherwise used, so remove
it.
-rw-r--r-- | usr.bin/tmux/paste.c | 6 | ||||
-rw-r--r-- | usr.bin/tmux/tmux.h | 3 |
2 files changed, 2 insertions, 7 deletions
diff --git a/usr.bin/tmux/paste.c b/usr.bin/tmux/paste.c index a00c876e74f..d7da3e13802 100644 --- a/usr.bin/tmux/paste.c +++ b/usr.bin/tmux/paste.c @@ -1,4 +1,4 @@ -/* $OpenBSD: paste.c,v 1.5 2009/09/20 14:58:12 nicm Exp $ */ +/* $OpenBSD: paste.c,v 1.6 2009/11/03 17:17:24 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h index 83f24a4bbe1..2813480138a 100644 --- a/usr.bin/tmux/tmux.h +++ b/usr.bin/tmux/tmux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.154 2009/11/02 20:18:22 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.155 2009/11/03 17:17:24 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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 *); |