aboutsummaryrefslogtreecommitdiff
path: root/trie.inc.h
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-02-06 12:08:58 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-02-06 12:08:58 +0100
commitaf3cc906185d7273cf82b1339b63843062898120 (patch)
tree01d9cff85d6c4dfee3185a2402745d721f3636e8 /trie.inc.h
parentRemove GC. (diff)
downloadcalp-af3cc906185d7273cf82b1339b63843062898120.tar.gz
calp-af3cc906185d7273cf82b1339b63843062898120.tar.xz
Code cleanup and add documentation.
Diffstat (limited to 'trie.inc.h')
-rw-r--r--trie.inc.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/trie.inc.h b/trie.inc.h
index fbc3b807..4c42da7a 100644
--- a/trie.inc.h
+++ b/trie.inc.h
@@ -36,7 +36,6 @@ int PUSH(TRIE(TYPE)) ( TRIE(TYPE)* trie, char* key, TYPE* val ) {
cur = last->child;
char* subkey = key;
- // --------------------------------------------------
while (1) {
if (cur == NULL) {
@@ -56,7 +55,6 @@ int PUSH(TRIE(TYPE)) ( TRIE(TYPE)* trie, char* key, TYPE* val ) {
subkey++;
} else if (subkey[0] == '\0') {
/* Key finished */
- // last->value = val;
last->value = RESOLVE(TYPE)(last->value, val);
return 0;
} else if (cur->next != NULL) {