mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	status_out and associated data structures are no longer used.
This commit is contained in:
		@@ -115,8 +115,6 @@ server_client_create(int fd)
 | 
			
		||||
	c->tty.sy = 24;
 | 
			
		||||
 | 
			
		||||
	screen_init(&c->status, c->tty.sx, 1, 0);
 | 
			
		||||
	RB_INIT(&c->status_new);
 | 
			
		||||
	RB_INIT(&c->status_old);
 | 
			
		||||
 | 
			
		||||
	c->message_string = NULL;
 | 
			
		||||
	TAILQ_INIT(&c->message_log);
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										10
									
								
								status.c
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								status.c
									
									
									
									
									
								
							@@ -142,16 +142,6 @@ status_prompt_save_history(void)
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Status output tree. */
 | 
			
		||||
RB_GENERATE(status_out_tree, status_out, entry, status_out_cmp);
 | 
			
		||||
 | 
			
		||||
/* Output tree comparison function. */
 | 
			
		||||
int
 | 
			
		||||
status_out_cmp(struct status_out *so1, struct status_out *so2)
 | 
			
		||||
{
 | 
			
		||||
	return (strcmp(so1->cmd, so2->cmd));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Get screen line of status line. -1 means off. */
 | 
			
		||||
int
 | 
			
		||||
status_at_line(struct client *c)
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										15
									
								
								tmux.h
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								tmux.h
									
									
									
									
									
								
							@@ -1176,15 +1176,6 @@ struct message_entry {
 | 
			
		||||
	TAILQ_ENTRY(message_entry) entry;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
/* Status output data from a job. */
 | 
			
		||||
struct status_out {
 | 
			
		||||
	char	*cmd;
 | 
			
		||||
	char	*out;
 | 
			
		||||
 | 
			
		||||
	RB_ENTRY(status_out) entry;
 | 
			
		||||
};
 | 
			
		||||
RB_HEAD(status_out_tree, status_out);
 | 
			
		||||
 | 
			
		||||
/* Client connection. */
 | 
			
		||||
struct client {
 | 
			
		||||
	struct imsgbuf	 ibuf;
 | 
			
		||||
@@ -1215,8 +1206,6 @@ struct client {
 | 
			
		||||
 | 
			
		||||
	struct event	 repeat_timer;
 | 
			
		||||
 | 
			
		||||
	struct status_out_tree status_old;
 | 
			
		||||
	struct status_out_tree status_new;
 | 
			
		||||
	struct timeval	 status_timer;
 | 
			
		||||
	struct screen	 status;
 | 
			
		||||
 | 
			
		||||
@@ -1904,11 +1893,7 @@ int	 server_set_stdin_callback(struct client *, void (*)(struct client *,
 | 
			
		||||
void	 server_unzoom_window(struct window *);
 | 
			
		||||
 | 
			
		||||
/* status.c */
 | 
			
		||||
int	 status_out_cmp(struct status_out *, struct status_out *);
 | 
			
		||||
RB_PROTOTYPE(status_out_tree, status_out, entry, status_out_cmp);
 | 
			
		||||
int	 status_at_line(struct client *);
 | 
			
		||||
void	 status_free_jobs(struct status_out_tree *);
 | 
			
		||||
void	 status_update_jobs(struct client *);
 | 
			
		||||
struct window *status_get_window_at(struct client *, u_int);
 | 
			
		||||
int	 status_redraw(struct client *);
 | 
			
		||||
void printflike(2, 3) status_message_set(struct client *, const char *, ...);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user