summaryrefslogtreecommitdiffstats
path: root/src/sord.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-09-28 23:56:42 +0000
committerDavid Robillard <d@drobilla.net>2011-09-28 23:56:42 +0000
commitb740b22af043444512da70ca15d6e8f7eba61636 (patch)
treefa6100d1c9ad35f976e6fd6b12377a3ae03eb0c6 /src/sord.c
parentdb7df61c02f28a86ebf496436d34a2d327c3ae30 (diff)
downloadsord-b740b22af043444512da70ca15d6e8f7eba61636.tar.gz
sord-b740b22af043444512da70ca15d6e8f7eba61636.tar.bz2
sord-b740b22af043444512da70ca15d6e8f7eba61636.zip
Tidy.
git-svn-id: http://svn.drobilla.net/sord/trunk@164 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'src/sord.c')
-rw-r--r--src/sord.c10
1 files changed, 1 insertions, 9 deletions
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