mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Sync OpenBSD patchset 431:
Remove unused function.
This commit is contained in:
		
							
								
								
									
										15
									
								
								job.c
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								job.c
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: job.c,v 1.7 2009-10-21 07:37:11 nicm Exp $ */
 | 
			
		||||
/* $Id: job.c,v 1.8 2009-10-23 17:27:40 tcunha Exp $ */
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
			
		||||
@@ -47,19 +47,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)
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										3
									
								
								tmux.h
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								tmux.h
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: tmux.h,v 1.481 2009-10-23 17:16:24 tcunha Exp $ */
 | 
			
		||||
/* $Id: tmux.h,v 1.482 2009-10-23 17:27:40 tcunha Exp $ */
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
			
		||||
@@ -1250,7 +1250,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 *);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user