diff options
author | David Robillard <d@drobilla.net> | 2011-04-27 21:55:56 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-04-27 21:55:56 +0000 |
commit | fc172b2cdf438b216ef16ecaf6a1467fecf9bea5 (patch) | |
tree | 4883aacfcdb21eecd80698cdd5f35f53b9f69b6c /src/sord_test.c | |
parent | a57e86686e3143bd6e0873264a12a04cf7e9939d (diff) | |
download | sord-fc172b2cdf438b216ef16ecaf6a1467fecf9bea5.tar.gz sord-fc172b2cdf438b216ef16ecaf6a1467fecf9bea5.tar.bz2 sord-fc172b2cdf438b216ef16ecaf6a1467fecf9bea5.zip |
Remove unused API.
git-svn-id: http://svn.drobilla.net/sord/trunk@89 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'src/sord_test.c')
-rw-r--r-- | src/sord_test.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/sord_test.c b/src/sord_test.c index 8a3c88b..e89d939 100644 --- a/src/sord_test.c +++ b/src/sord_test.c @@ -257,31 +257,6 @@ test_read(SordWorld world, SordModel sord, const size_t n_quads, const int n_obj } int -test_write(SordModel sord, const size_t n_quads, const int n_objects_per) -{ - int ret = EXIT_SUCCESS; - - fprintf(stderr, "Removing Statements... "); - - // Remove statements - SordIter iter; - for (iter = sord_begin(sord); !sord_iter_end(iter);) { - sord_remove_iter(sord, iter); - } - sord_iter_free(iter); - - const int num_quads = sord_num_quads(sord); - if (num_quads != 0) { - fprintf(stderr, "Fail: All quads removed but %d quads remain\n", num_quads); - return test_fail(); - } - - fprintf(stderr, "OK\n\n"); - - return ret; -} - -int main(int argc, char** argv) { static const size_t n_quads = 300; @@ -359,11 +334,6 @@ main(int argc, char** argv) sord_free(sord); } - sord = sord_new(world, SORD_SPO, false); - if (test_write(sord, n_quads, n_objects_per)) - goto fail; - - sord_free(sord); sord_world_free(world); return EXIT_SUCCESS; |