X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=index%2Frecgrs.c;h=ef0acb445b82de059a5a75c6914e9055f183fa64;hp=1457112fe50a64db202701ae6d8ee04b1739e1f8;hb=96e4c5479e111511f5df3531b6648931251b9e5d;hpb=a030c87bc444608639905eca95e29f84a4f1d991 diff --git a/index/recgrs.c b/index/recgrs.c index 1457112..ef0acb4 100644 --- a/index/recgrs.c +++ b/index/recgrs.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include @@ -730,8 +733,6 @@ static void index_termlist(struct source_parser *sp, data1_node *par, struct recExtractCtrl *p, int level, RecWord *wrd) { data1_termlist *tlist = 0; - data1_datatype dtype = DATA1K_string; - /* * cycle up towards the root until we find a tag with an att.. * this has the effect of indexing locally defined tags with @@ -743,9 +744,6 @@ static void index_termlist(struct source_parser *sp, data1_node *par, break; if (!par || !(tlist = par->u.tag.element->termlists)) return; - if (par->u.tag.element->tag) - dtype = par->u.tag.element->tag->kind; - for (; tlist; tlist = tlist->next) { /* consider source */