Remove p_query_scan (not in use anywhere)
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 19 Jan 2010 21:34:08 +0000 (22:34 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 19 Jan 2010 21:34:08 +0000 (22:34 +0100)
include/yaz/pquery.h
src/pquery.c

index d6324f3..ddcd5dc 100644 (file)
@@ -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);
index 69f4a6c..9ca5152 100644 (file)
@@ -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));