Skip to content

Commit b831848

Browse files
committed
[fix] don't need to delete the comparator defines
1 parent 160d718 commit b831848

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/binary_tree.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ typedef struct BST_TYPED(node) {
3434
} BST_TYPED(node_t);
3535

3636
#define BST_NODE_TYPE BST_TYPED(node_t)
37-
#define NO_BST_NODE_TYPE_DEFINED
3837
#endif
3938

4039
typedef struct BST_TYPED(stack) {
@@ -67,16 +66,13 @@ static inline bool BST_TYPED(key_less_than)(BST_KEY_TYPE key, BST_KEY_TYPE node_
6766
return key < node_key;
6867
}
6968
#define BST_KEY_LESS_THAN BST_TYPED(key_less_than)
70-
#define NO_BST_KEY_LESS_THAN_DEFINED
7169
#endif
7270

7371
#ifndef BST_KEY_EQUALS
7472
static inline bool BST_TYPED(key_equal)(BST_KEY_TYPE key, BST_KEY_TYPE node_key) {
7573
return key == node_key;
7674
}
7775
#define BST_KEY_EQUALS BST_TYPED(key_equal)
78-
#define NO_BST_KEY_EQUALS_THAN_DEFINED
79-
8076
#endif
8177

8278
static inline bool BST_FUNC(node_is_leaf)(BST_NODE_TYPE *node) {
@@ -177,15 +173,3 @@ BST_VALUE_TYPE *BST_FUNC(search)(BST_NODE_TYPE *node, BST_KEY_TYPE key) {
177173
#undef BST_CONCAT
178174
#undef BST_TYPED
179175
#undef BST_FUNC
180-
#ifdef NO_BST_NODE_TYPE_DEFINED
181-
#undef BST_NODE_TYPE
182-
#undef NO_BST_NODE_TYPE_DEFINED
183-
#endif
184-
#ifdef NO_BST_KEY_EQUALS_DEFINED
185-
#undef BST_KEY_EQUALS
186-
#undef NO_BST_KEY_EQUALS_DEFINED
187-
#endif
188-
#ifdef NO_BST_KEY_LESS_THAN_DEFINED
189-
#undef BST_KEY_LESS_THAN
190-
#undef NO_BST_KEY_LESS_THAN_DEFINED
191-
#endif

0 commit comments

Comments
 (0)