summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-10-21 18:20:17 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-10-21 18:20:17 +0000
commitde87ce08d2cfb78f17463278c42af6590de96a88 (patch)
tree43acc79c0c6271311c71e76f96de90bcb9ede5ac
parent83e3c0784947f6837ab7bb1944998c0c40cbb527 (diff)
Remove unused function.
-rw-r--r--usr.bin/tmux/job.c15
-rw-r--r--usr.bin/tmux/tmux.h3
2 files changed, 2 insertions, 16 deletions
diff --git a/usr.bin/tmux/job.c b/usr.bin/tmux/job.c
index 9f8e39375fe..0d6479cabac 100644
--- a/usr.bin/tmux/job.c
+++ b/usr.bin/tmux/job.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: job.c,v 1.7 2009/10/21 07:24:23 nicm Exp $ */
+/* $OpenBSD: job.c,v 1.8 2009/10/21 18:20:16 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -48,19 +48,6 @@ job_tree_init(struct jobs *jobs)
RB_INIT(jobs);
}
-/* Count the number of jobs in a tree. */
-u_int
-job_tree_size(struct jobs *jobs)
-{
- struct job *job;
- u_int n;
-
- n = 0;
- RB_FOREACH(job, jobs, jobs)
- n++;
- return (n);
-}
-
/* Destroy a job tree. */
void
job_tree_free(struct jobs *jobs)
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h
index e8cea6a17f9..337ae28a999 100644
--- a/usr.bin/tmux/tmux.h
+++ b/usr.bin/tmux/tmux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.h,v 1.143 2009/10/20 19:18:28 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.144 2009/10/21 18:20:16 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -1252,7 +1252,6 @@ int job_cmp(struct job *, struct job *);
RB_PROTOTYPE(jobs, job, entry, job_cmp);
void job_tree_init(struct jobs *);
void job_tree_free(struct jobs *);
-u_int job_tree_size(struct jobs *);
struct job *job_get(struct jobs *, const char *);
struct job *job_add(struct jobs *, struct client *,
const char *, void (*)(struct job *), void (*)(void *), void *);