diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-10-29 10:12:53 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-10-29 10:12:53 +0300 |
commit | b4bc5e778e14027dd6057276a353c32baa64bd97 (patch) | |
tree | 320314f0b223130e7783db30fc2e515fd78ab1d1 /build/parseDescription.c | |
parent | d874afb5cde620c6f409b0c1a0ee31ccf6f30ce8 (diff) | |
download | rpm-b4bc5e778e14027dd6057276a353c32baa64bd97.tar.gz |
Eliminate unused spectag and speclines goo from spec
- These were used, back in the day, to implement a hidden --specedit
switch, which in all its glory did: print a copy of a spec file,
with group, summary and description looked up from specspo.
This huge pile of junk was left behind from kicking out the
useless "feature" in commits 7b95061d3b77d8e6b3c80e856b66f49b393511ba and
0f991a14209054da7c45c46e96750738fc62874d.
Diffstat (limited to 'build/parseDescription.c')
-rw-r--r-- | build/parseDescription.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/build/parseDescription.c b/build/parseDescription.c index c0226c343..3ea48e62f 100644 --- a/build/parseDescription.c +++ b/build/parseDescription.c @@ -22,7 +22,6 @@ int parseDescription(rpmSpec spec) const char *name = NULL; const char *lang = RPMBUILD_DEFAULT_LANG; poptContext optCon = NULL; - spectag t = NULL; struct poptOption optionsTable[] = { { NULL, 'n', POPT_ARG_STRING, &name, 'n', NULL, NULL}, { NULL, 'l', POPT_ARG_STRING, &lang, 'l', NULL, NULL}, @@ -78,8 +77,6 @@ int parseDescription(rpmSpec spec) } #endif - t = stashSt(spec, pkg->header, RPMTAG_DESCRIPTION, lang); - sb = newStringBuf(); if ((rc = readLine(spec, STRIP_TRAILINGSPACE | STRIP_COMMENTS)) > 0) { @@ -90,7 +87,6 @@ int parseDescription(rpmSpec spec) } else { while (! (nextPart = isPart(spec->line))) { appendLineStringBuf(sb, spec->line); - if (t) t->t_nlines++; if ((rc = readLine(spec, STRIP_TRAILINGSPACE | STRIP_COMMENTS)) > 0) { nextPart = PART_NONE; |