From 9932e38ab25b3b051b9fa869c51a68aed2409251 Mon Sep 17 00:00:00 2001 From: keie Date: Mon, 10 Dec 1984 12:49:56 +0000 Subject: [PATCH] Removed the definition of the NEEDS variable. --- util/ack/ack.h | 1 - util/ack/trans.c | 14 -------------- 2 files changed, 15 deletions(-) diff --git a/util/ack/ack.h b/util/ack/ack.h index 860109238..51e605f41 100644 --- a/util/ack/ack.h +++ b/util/ack/ack.h @@ -17,7 +17,6 @@ #define HOME "EM" #define RTS "RTS" -#define NEEDS "NEEDS" #define HEAD "HEAD" #define TAIL "TAIL" #define SRC "SOURCE" diff --git a/util/ack/trans.c b/util/ack/trans.c index 1e383fe29..8d0162556 100644 --- a/util/ack/trans.c +++ b/util/ack/trans.c @@ -119,19 +119,6 @@ do_Rflag(argp) char *argp ; { l_add(&R_list,argp) ; } -char *needvar() { - static growstring needed ; - static int been_here = NO ; - - if ( !been_here ) { - gr_init(&needed) ; - been_here=YES ; - gr_cat(&needed,headvar()) ; - gr_cat(&needed,tailvar()) ; - } - return gr_start(needed) ; -} - char *headvar() { if ( !touch_head) return "" ; return gr_start(head) ; @@ -171,7 +158,6 @@ transini() { set_Rflag(l_content(*elem)) ; } l_clear(&R_list) ; - setpvar(keeps(NEEDS),needvar) ; setpvar(keeps(HEAD),headvar) ; setpvar(keeps(TAIL),tailvar) ; }