Skip to content

Commit 6919c1c

Browse files
committed
Remove unused acmp_clone_node_no_state() function entirely.
1 parent 67293dc commit 6919c1c

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

apache2/acmp.c

-14
Original file line numberDiff line numberDiff line change
@@ -251,20 +251,6 @@ static void acmp_add_node_to_parent(acmp_node_t *parent, acmp_node_t *child) {
251251
}
252252
}
253253

254-
#if 0
255-
/**
256-
* Copies values from one node to another, without child/sibling/fail pointers
257-
* and without state variables.
258-
*/
259-
static void acmp_clone_node_no_state(acmp_node_t *from, acmp_node_t *to) {
260-
memcpy(to, from, sizeof(acmp_node_t));
261-
to->child = NULL;
262-
to->sibling = NULL;
263-
to->fail = NULL;
264-
to->hit_count = 0;
265-
}
266-
#endif
267-
268254
static inline acmp_node_t *acmp_btree_find(acmp_node_t *node, acmp_utf8_char_t letter) {
269255
acmp_btree_node_t *bnode = node->btree;
270256
for (;;) {

0 commit comments

Comments
 (0)