From b4bc5e778e14027dd6057276a353c32baa64bd97 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Fri, 29 Oct 2010 10:12:53 +0300 Subject: 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. --- build/rpmbuild_internal.h | 35 ----------------------------------- 1 file changed, 35 deletions(-) (limited to 'build/rpmbuild_internal.h') diff --git a/build/rpmbuild_internal.h b/build/rpmbuild_internal.h index 1c588709b..f0b2e46e1 100644 --- a/build/rpmbuild_internal.h +++ b/build/rpmbuild_internal.h @@ -19,26 +19,6 @@ typedef struct ReadLevelEntry { struct ReadLevelEntry * next; } RLE_t; -typedef struct spectag_s { - int t_tag; - int t_startx; - int t_nlines; - char * t_lang; - char * t_msgid; -} * spectag; - -struct spectags_s { - spectag st_t; - int st_nalloc; - int st_ntags; -}; - -struct speclines_s { - char **sl_lines; - int sl_nalloc; - int sl_nlines; -}; - /** \ingroup rpmbuild */ struct Source { @@ -49,8 +29,6 @@ struct Source { struct Source * next; }; -typedef struct spectags_s * spectags; -typedef struct speclines_s * speclines; typedef struct Package_s * Package; /** \ingroup rpmbuild @@ -62,9 +40,6 @@ struct rpmSpec_s { char * buildSubdir; const char * rootDir; - speclines sl; - spectags st; - struct OpenFileInfo * fileStack; char lbuf[10*BUFSIZ]; char *lbufPtr; @@ -290,16 +265,6 @@ int parseScript(rpmSpec spec, int parsePart); RPM_GNUC_INTERNAL rpmRC rpmCharCheck(rpmSpec spec, char *field, size_t fsize, const char *whitelist); -/** \ingroup rpmbuild - * stashSt. - * @param spec spec file control structure - * @param h header - * @param tag tag - * @param lang locale - */ -RPM_GNUC_INTERNAL -spectag stashSt(rpmSpec spec, Header h, rpmTagVal tag, const char * lang); - /** \ingroup rpmbuild * Parse dependency relations from spec file and/or autogenerated output buffer. * @param spec spec file control structure -- cgit v1.2.3