]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
remove junk files
authorMatthew Newton <matthew-git@newtoncomputing.co.uk>
Thu, 22 Mar 2018 00:29:46 +0000 (00:29 +0000)
committerMatthew Newton <matthew-git@newtoncomputing.co.uk>
Thu, 22 Mar 2018 00:29:46 +0000 (00:29 +0000)
src/lib/util/#notes# [deleted file]
src/lib/util/#prefix# [deleted file]

diff --git a/src/lib/util/#notes# b/src/lib/util/#notes#
deleted file mode 100644 (file)
index 48d8457..0000000
+++ /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 (file)
index 49059fa..0000000
+++ /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