From: Sebastian Harl Date: Sat, 25 Oct 2014 20:10:12 +0000 (+0200) Subject: store: Removed unused types. X-Git-Tag: sysdb-0.6.0~57 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f19bd5e590519c7a1624884d463e36f49af82632;p=sysdb.git store: Removed unused types. --- diff --git a/src/core/store-private.h b/src/core/store-private.h index a0f4ec6..775057f 100644 --- a/src/core/store-private.h +++ b/src/core/store-private.h @@ -154,7 +154,6 @@ enum { (((t) == MATCHER_OR) ? "OR" \ : ((t) == MATCHER_AND) ? "AND" \ : ((t) == MATCHER_NOT) ? "NOT" \ - : ((t) == MATCHER_NAME) ? "NAME" \ : ((t) == MATCHER_ANY) ? "ANY" \ : ((t) == MATCHER_ALL) ? "ALL" \ : ((t) == MATCHER_LT) ? "<" \ @@ -170,12 +169,6 @@ enum { : ((t) == MATCHER_ISNNULL) ? "IS NOT NULL" \ : "UNKNOWN") -/* match the name of something */ -typedef struct { - char *name; - regex_t *name_re; -} string_matcher_t; - /* matcher base type */ struct sdb_store_matcher { sdb_object_t super; @@ -221,15 +214,6 @@ typedef struct { } cmp_matcher_t; #define CMP_M(m) ((cmp_matcher_t *)(m)) -/* match any type of object by it's name */ -typedef struct { - sdb_store_matcher_t super; - - int obj_type; - string_matcher_t name; -} name_matcher_t; -#define NAME_M(m) ((name_matcher_t *)(m)) - typedef struct { sdb_store_matcher_t super; sdb_store_expr_t *expr;