From 418be7247234652f2a09cf20cbbb892edceed49c Mon Sep 17 00:00:00 2001 From: Justin Davis Date: Thu, 11 Apr 2013 10:39:41 +0000 Subject: Remove code for obsolete customvars field. --- bin/pbfields | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/bin/pbfields b/bin/pbfields index 662c807..281fc88 100755 --- a/bin/pbfields +++ b/bin/pbfields @@ -33,14 +33,6 @@ $1 == "maintainer" { maintainer = $2; next } # pkgdesc has the only value where parameters do not expand. $1 == "pkgdesc" { output[$1] = qnoexpand($2); next } -$1 == "customvars" { - for(i = 2; i <= NF; i++){ - customvars[i - 1] = $i - } - customlen = NF - 1 - next -} - { for(i = 2; i <= NF; i++) $i = qexpand($i) if(($1 in strfield) || ($1 in cfield)){ @@ -49,8 +41,6 @@ $1 == "customvars" { arrtxt = wraparray(length($1) + 2) if(arrfield[$1]){ output[$1] = arrtxt - }else{ - unk[$1] = arrtxt } } } @@ -73,17 +63,6 @@ END { if(f in cfield) f = "_" f print f, v } - - for(i = 1; i <= customlen; i++){ - f = customvars[i] - if(f in unk){ - print "_" f, unk[f] - }else{ - printf("pbfields: error: customvar \"%s\" has no value\n", f) \ - > "/dev/stderr" - exit 100 - } - } } function wraparray (indent) -- cgit v1.2.3-24-g4f1b