summaryrefslogtreecommitdiff
path: root/build/parseSpec.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-10-29 10:12:53 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-10-29 10:12:53 +0300
commitb4bc5e778e14027dd6057276a353c32baa64bd97 (patch)
tree320314f0b223130e7783db30fc2e515fd78ab1d1 /build/parseSpec.c
parentd874afb5cde620c6f409b0c1a0ee31ccf6f30ce8 (diff)
downloadlibrpm-tizen-b4bc5e778e14027dd6057276a353c32baa64bd97.tar.gz
librpm-tizen-b4bc5e778e14027dd6057276a353c32baa64bd97.tar.bz2
librpm-tizen-b4bc5e778e14027dd6057276a353c32baa64bd97.zip
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/parseSpec.c')
-rw-r--r--build/parseSpec.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/build/parseSpec.c b/build/parseSpec.c
index 3f912dd58..8f2db6d5b 100644
--- a/build/parseSpec.c
+++ b/build/parseSpec.c
@@ -275,15 +275,6 @@ retry:
ofi->readPtr = ofi->readBuf;
ofi->lineNum++;
spec->lineNum = ofi->lineNum;
- if (spec->sl) {
- speclines sl = spec->sl;
- if (sl->sl_nlines == sl->sl_nalloc) {
- sl->sl_nalloc += 100;
- sl->sl_lines = (char **) xrealloc(sl->sl_lines,
- sl->sl_nalloc * sizeof(*(sl->sl_lines)));
- }
- sl->sl_lines[sl->sl_nlines++] = xstrdup(ofi->readBuf);
- }
}
return 0;
}