From b740b22af043444512da70ca15d6e8f7eba61636 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 28 Sep 2011 23:56:42 +0000 Subject: Tidy. git-svn-id: http://svn.drobilla.net/sord/trunk@164 3d64ff67-21c5-427c-a301-fe4f08042e5a --- src/sord.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/sord.c') diff --git a/src/sord.c b/src/sord.c index 241e5c9..4d8908c 100644 --- a/src/sord.c +++ b/src/sord.c @@ -724,9 +724,6 @@ index_search(ZixTree* db, const SordQuad search_key) { ZixTreeIter* iter = NULL; zix_tree_find(db, (void*)search_key, &iter); - if (!iter) { - fprintf(stderr, "SEARCH FAILED\n"); - } return iter; } @@ -861,12 +858,7 @@ sord_lookup_literal(SordWorld* world, SordNode* type, key.node.flags = 0; key.node.type = SERD_LITERAL; - SordNode* id = zix_hash_find(world->literals, &key); - if (id) { - return id; - } else { - return 0; - } + return zix_hash_find(world->literals, &key); } SordNodeType -- cgit v1.2.1