From: Matthew Newton Date: Thu, 22 Mar 2018 00:29:46 +0000 (+0000) Subject: remove junk files X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc7de2e8cbf0e07bd337452d7ff1d3d31aab7d75;p=thirdparty%2Ffreeradius-server.git remove junk files --- diff --git a/src/lib/util/#notes# b/src/lib/util/#notes# deleted file mode 100644 index 48d84575793..00000000000 --- a/src/lib/util/#notes# +++ /dev/null @@ -1 +0,0 @@ -lcp takes end_bit, not keylen any more diff --git a/src/lib/util/#prefix# b/src/lib/util/#prefix# deleted file mode 100644 index 49059fa9e6d..00000000000 --- a/src/lib/util/#prefix# +++ /dev/null @@ -1,74 +0,0 @@ -/** Convert node->entry[chunk] into a path - */ -static void fr_trie_path_add_prefix(void **entry, fr_trie_node_t *node, uint16_t chunk, size_t start_bit) -{ - uint16_t base, mask; - size_t end_bit; - fr_trie_path_t *path; - - base = chunk; - mask = (1 << node->size) - 1; - - /* - * Convert this chunk to a - * fr_trie_path_t, and return that up the - * trie. - */ - if (IS_DATA(node->entry[chunk])) { - uint8_t key[2]; - - /* - * Get start/end bits for the key. - */ - start_bit &= 0x07; - end_bit = start_bit + node->size; - assert(end_bit < 16); - - /* - * Shift the chunk into position - * - * @todo - shift in the top bits, too??? - */ - chunk <<= (16 - start_bit - node->size); - key[0] = chunk >> 8; - key[1] = chunk & 0xff; - - path = fr_trie_path_alloc(talloc_parent(node), key, start_bit, end_bit, node->entry[chunk]); - if (!path) return; - - talloc_free(node); - *entry = path; - return; - } - - /* - * Extend the child fr_trie_path_t with - * this chunk, and return that back up - * the trie. - */ - if (IS_PATH(node->entry[chunk])) { - path = GET_PATH(node->entry[chunk]); - - assert(start_bit == path->start_bit); - - if (BYTEOF(start_bit) == BYTEOF(start_bit + node->size)) { - fprintf(stderr, "EXTEND PATH SAME BYTE AFTER COLLAPSE %zd %zd, %zd, %zd\n", - start_bit, node->size, path->start_bit, path->length); - // path->start_bit -= node->size - // move path over - // ensure that the higher bits are what we need - - } else { - fprintf(stderr, "EXTEND PATH DIFF BYTE AFTER COLLAPSE\n"); - } - } - -} - - -#if 0 - if (!IS_NODE(node->entry[chunk])) { - fr_trie_path_add_prefix(entry, node, chunk, start_bit); - return data; - } -#endif