diff options
author | Sami Kerola <kerolasa@iki.fi> | 2012-11-02 17:50:59 +0000 |
---|---|---|
committer | Craig Small <csmall@enc.com.au> | 2012-11-06 22:30:02 +1100 |
commit | 4a6df5b133663906130c30c78b4d022aa49ae410 (patch) | |
tree | 1a022419f325622039272f164bca102c2ae9cc44 | |
parent | 58713dbcc87764ebe0bbf3062ec1821a61f74c34 (diff) | |
download | procps-ng-4a6df5b133663906130c30c78b4d022aa49ae410.tar.gz |
ps: cut out code unused code
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
-rw-r--r-- | ps/output.c | 11 | ||||
-rw-r--r-- | ps/stacktrace.c | 2 |
2 files changed, 2 insertions, 11 deletions
diff --git a/ps/output.c b/ps/output.c index 9644ed3..1f7e494 100644 --- a/ps/output.c +++ b/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){ int outbuf_pages; char *outbuf; diff --git a/ps/stacktrace.c b/ps/stacktrace.c index a4e2938..a0b4755 100644 --- a/ps/stacktrace.c +++ b/ps/stacktrace.c @@ -179,7 +179,9 @@ static void stack_trace_sigsegv(int signum){ } /************/ +#ifdef DEBUG void init_stack_trace(char *prog_name){ stored_prog_name = prog_name; signal(SIGSEGV, stack_trace_sigsegv); } +#endif |