summaryrefslogtreecommitdiff
path: root/storage/myisam/ft_boolean_search.c
diff options
context:
space:
mode:
authorDavi Arnaut <davi.arnaut@oracle.com>2010-07-23 17:16:29 -0300
committerDavi Arnaut <davi.arnaut@oracle.com>2010-07-23 17:16:29 -0300
commit75e22123972f3404cd384839695c9e7b0165565f (patch)
tree6e64b324e47ec067c848617b8ea8340fde01d8b2 /storage/myisam/ft_boolean_search.c
parent7a344b61065080902ad9530d33ed0fa72a1522fa (diff)
downloadmariadb-git-75e22123972f3404cd384839695c9e7b0165565f.tar.gz
WL#5498: Remove dead and unused source code
Remove unused macros or macro which are always defined. include/my_global.h: Remove unused macros and move macros which aren't used globally.
Diffstat (limited to 'storage/myisam/ft_boolean_search.c')
-rw-r--r--storage/myisam/ft_boolean_search.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/storage/myisam/ft_boolean_search.c b/storage/myisam/ft_boolean_search.c
index 33c1e092a00..b54b4c6ce49 100644
--- a/storage/myisam/ft_boolean_search.c
+++ b/storage/myisam/ft_boolean_search.c
@@ -92,6 +92,8 @@ static double *nwghts=_nwghts+5; /* nwghts[i] = -0.5*1.5**i */
#define FTB_FLAG_NO 4
#define FTB_FLAG_WONLY 8
+#define CMP_NUM(a,b) (((a) < (b)) ? -1 : ((a) == (b)) ? 0 : 1)
+
typedef struct st_ftb_expr FTB_EXPR;
struct st_ftb_expr
{