From: Adam Dickmeiss Date: Tue, 19 Jan 2010 21:34:08 +0000 (+0100) Subject: Remove p_query_scan (not in use anywhere) X-Git-Tag: v4.0.0~2 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=4b178f16795cbdd5693abc705e5bdd4a17016672;p=yaz-moved-to-github.git Remove p_query_scan (not in use anywhere) --- diff --git a/include/yaz/pquery.h b/include/yaz/pquery.h index d6324f3..ddcd5dc 100644 --- a/include/yaz/pquery.h +++ b/include/yaz/pquery.h @@ -42,8 +42,6 @@ typedef struct yaz_pqf_parser *YAZ_PQF_Parser; YAZ_EXPORT Z_RPNQuery *p_query_rpn(ODR o, const char *qbuf); -YAZ_EXPORT Z_AttributesPlusTerm *p_query_scan(ODR o, oid_proto proto, - Odr_oid **attributeSetP, const char *qbuf); YAZ_EXPORT YAZ_PQF_Parser yaz_pqf_create(void); YAZ_EXPORT Z_RPNQuery *yaz_pqf_parse(YAZ_PQF_Parser p, ODR o, const char *qbuf); diff --git a/src/pquery.c b/src/pquery.c index 69f4a6c..9ca5152 100644 --- a/src/pquery.c +++ b/src/pquery.c @@ -756,23 +756,6 @@ static Z_AttributesPlusTerm *p_query_scan_mk(struct yaz_pqf_parser *li, return apt; } -Z_AttributesPlusTerm *p_query_scan (ODR o, oid_proto proto, - Odr_oid **attributeSetP, - const char *qbuf) -{ - struct yaz_pqf_parser li; - - li.error = 0; - li.left_sep = "{\""; - li.right_sep = "}\""; - li.escape_char = '@'; - li.term_type = Z_Term_general; - li.query_buf = li.query_ptr = qbuf; - li.lex_buf = 0; - - return p_query_scan_mk(&li, o, attributeSetP); -} - YAZ_PQF_Parser yaz_pqf_create (void) { YAZ_PQF_Parser p = (YAZ_PQF_Parser) xmalloc (sizeof(*p));