X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Ffacet.c;h=d32fcf69d5bc8d2b24015934dd64de1302e92bff;hp=b65091a4e8d9af1a030b957d424a8deb5e07adc9;hb=51e1ca7946289042c3c09e92afc1c1c465f5d870;hpb=2edd9764942ec2d62cabcb4190a69921c60af293 diff --git a/src/facet.c b/src/facet.c index b65091a..d32fcf6 100644 --- a/src/facet.c +++ b/src/facet.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2013 Index Data + * Copyright (C) Index Data * See the file LICENSE for details. */ @@ -175,7 +175,8 @@ void yaz_facet_attr_get_z_attributes(const Z_AttributeList *attributes, sprintf(av->useattrbuff, ODR_INT_PRINTF, *ae-> attributeType); av->errstring = av->useattrbuff; - yaz_log(YLOG_WARN, "Unsupported attribute type %s", av->useattrbuff); + yaz_log(YLOG_WARN, "Unsupported attribute type %s", + av->useattrbuff); /* would like to give a better message, but the standard */ /* tells me to return the attribute type */ } @@ -183,27 +184,8 @@ void yaz_facet_attr_get_z_attributes(const Z_AttributeList *attributes, return; /* no need to dig deeper, return on first error */ } return; -} /* facetattrs */ - -#if 0 -Z_Term *term_create(ODR odr, const char *cstr) -{ - Z_Term *term = odr_malloc(odr, sizeof(*term)); - term->which = Z_Term_characterString; - term->u.characterString = odr_strdup(odr, cstr); - return term; } -Z_FacetTerm* facet_term_create(ODR odr, Z_Term *term, int freq) -{ - Z_FacetTerm *facet_term = odr_malloc(odr, sizeof(*facet_term)); - facet_term->count = odr_malloc(odr, sizeof(*facet_term->count)); - facet_term->term = term; - *facet_term->count = freq; - return facet_term; -} -#endif - Z_FacetTerm *facet_term_create_cstr(ODR odr, const char *cstr, Odr_int freq) { Z_FacetTerm *facet_term = odr_malloc(odr, sizeof(*facet_term));