ps: cut out code unused code
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
		
							
								
								
									
										11
									
								
								ps/output.c
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								ps/output.c
									
									
									
									
									
								
							| @@ -1994,17 +1994,6 @@ void show_one_proc(const proc_t *restrict const p, const format_node *restrict f | |||||||
| } | } | ||||||
|  |  | ||||||
|  |  | ||||||
| #ifdef TESTING |  | ||||||
| static void sanity_check(void){ |  | ||||||
|   format_struct *fs = format_array; |  | ||||||
|   while((fs->spec)[0] != '~'){ |  | ||||||
|     if(strlen(fs->head) > fs->width) printf("%d %s\n",strlen(fs->head),fs->spec); |  | ||||||
|     fs++; |  | ||||||
|   } |  | ||||||
| } |  | ||||||
| #endif |  | ||||||
|  |  | ||||||
|  |  | ||||||
| void init_output(void){ | void init_output(void){ | ||||||
|   int outbuf_pages; |   int outbuf_pages; | ||||||
|   char *outbuf; |   char *outbuf; | ||||||
|   | |||||||
| @@ -179,7 +179,9 @@ static void stack_trace_sigsegv(int signum){ | |||||||
| } | } | ||||||
|  |  | ||||||
| /************/ | /************/ | ||||||
|  | #ifdef DEBUG | ||||||
| void init_stack_trace(char *prog_name){ | void init_stack_trace(char *prog_name){ | ||||||
|   stored_prog_name = prog_name; |   stored_prog_name = prog_name; | ||||||
|   signal(SIGSEGV, stack_trace_sigsegv); |   signal(SIGSEGV, stack_trace_sigsegv); | ||||||
| } | } | ||||||
|  | #endif | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user