mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Remove unused function.
This commit is contained in:
		
							
								
								
									
										13
									
								
								job.c
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								job.c
									
									
									
									
									
								
							@@ -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)
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								tmux.h
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								tmux.h
									
									
									
									
									
								
							@@ -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 *);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user