diff options
author | Patrick McHardy <kaber@trash.net> | 2013-04-15 00:39:22 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2013-04-15 00:39:22 +0200 |
commit | 7f98d140f31151d9e81f55faad2f271b2e28f2b7 (patch) | |
tree | b4126f7b9f59bda1215569e98f185158a7d45a8c /include/expression.h | |
parent | 7d4df49eea9fb295f60be9db7d690d7cfe253abc (diff) |
expr: kill EXPR_F_PRIMARY
Not used anymore, kill it.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/expression.h')
-rw-r--r-- | include/expression.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/include/expression.h b/include/expression.h index 66c215a2..f0eb7993 100644 --- a/include/expression.h +++ b/include/expression.h @@ -133,16 +133,14 @@ struct expr_ops { /** * enum expr_flags * - * @EXPR_F_PRIMARY: primary expression * @EXPR_F_CONSTANT: constant expression * @EXPR_F_SINGLETON: singleton (implies primary and constant) * @EXPR_F_INTERVAL_END: set member ends an open interval */ enum expr_flags { - EXPR_F_PRIMARY = 0x1, - EXPR_F_CONSTANT = 0x2, - EXPR_F_SINGLETON = 0x4, - EXPR_F_INTERVAL_END = 0x8, + EXPR_F_CONSTANT = 0x1, + EXPR_F_SINGLETON = 0x2, + EXPR_F_INTERVAL_END = 0x4, }; #include <payload.h> @@ -269,11 +267,6 @@ extern int expr_binary_error(struct eval_ctx *ctx, #define expr_error(ctx, expr, fmt, args...) \ expr_binary_error(ctx, expr, NULL, fmt, ## args) -static inline bool expr_is_primary(const struct expr *expr) -{ - return expr->flags & EXPR_F_PRIMARY ? true : false; -} - static inline bool expr_is_constant(const struct expr *expr) { return expr->flags & EXPR_F_CONSTANT ? true : false; |