Code

store: Removed unused, old conditional matchers.
[sysdb.git] / src / core / store-private.h
index be262ec61ecfb901a2fb12ff96667d8083f5786c..6e232ddf145fcc6b76816c98e1bbadd9291288aa 100644 (file)
@@ -124,27 +124,6 @@ struct sdb_store_expr {
        sdb_data_t data;
 };
 
-/*
- * conditionals
- */
-
-/* compares an object using the specified conditional and taking the specified
- * filter into account */
-typedef int (*cmp_cb)(sdb_store_obj_t *, sdb_store_cond_t *,
-               sdb_store_matcher_t *);
-
-struct sdb_store_cond {
-       sdb_object_t super;
-       cmp_cb cmp;
-};
-
-typedef struct {
-       sdb_store_cond_t super;
-       char *name;
-       sdb_store_expr_t *expr;
-} attr_cond_t;
-#define ATTR_C(obj) ((attr_cond_t *)(obj))
-
 /*
  * matchers
  */
@@ -160,11 +139,6 @@ enum {
        MATCHER_SERVICE,
        MATCHER_METRIC,
        MATCHER_ATTRIBUTE,
-       MATCHER_LT,
-       MATCHER_LE,
-       MATCHER_EQ,
-       MATCHER_GE,
-       MATCHER_GT,
        MATCHER_CMP_LT,
        MATCHER_CMP_LE,
        MATCHER_CMP_EQ,
@@ -187,12 +161,7 @@ enum {
                : ((t) == MATCHER_SERVICE) ? "SERVICE" \
                : ((t) == MATCHER_METRIC) ? "METRIC" \
                : ((t) == MATCHER_ATTRIBUTE) ? "ATTRIBUTE" \
-               : ((t) == MATCHER_LT) ? "<" \
-               : ((t) == MATCHER_LE) ? "<=" \
-               : ((t) == MATCHER_EQ) ? "=" \
                : ((t) == MATCHER_CMP_NE) ? "!=" \
-               : ((t) == MATCHER_GE) ? ">=" \
-               : ((t) == MATCHER_GT) ? ">" \
                : ((t) == MATCHER_IN) ? "IN" \
                : ((t) == MATCHER_REGEX) ? "=~" \
                : ((t) == MATCHER_NREGEX) ? "!~" \
@@ -273,13 +242,6 @@ typedef struct {
 } isnull_matcher_t;
 #define ISNULL_M(m) ((isnull_matcher_t *)(m))
 
-/* match using conditionals */
-typedef struct {
-       sdb_store_matcher_t super;
-       sdb_store_cond_t *cond;
-} cond_matcher_t;
-#define COND_M(m) ((cond_matcher_t *)(m))
-
 #ifdef __cplusplus
 } /* extern "C" */
 #endif