diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2014-12-16 15:47:01 +0100 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2014-12-18 11:53:08 +0100 |
commit | 14499361a537f769fadfb2e9323c8a65d31e6862 (patch) | |
tree | a0d022852fd7fc173296c6a4d2f75daeaed722c5 /src/journal/test-journal.c | |
parent | journal: delete unused function journal_file_move_to_entry_by_offset() (diff) | |
download | systemd-14499361a537f769fadfb2e9323c8a65d31e6862.tar.xz systemd-14499361a537f769fadfb2e9323c8a65d31e6862.zip |
journal: delete unused function journal_file_skip_entry()
Its only caller is a test.
Diffstat (limited to '')
-rw-r--r-- | src/journal/test-journal.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/journal/test-journal.c b/src/journal/test-journal.c index ff9dc9e170..29d5877986 100644 --- a/src/journal/test-journal.c +++ b/src/journal/test-journal.c @@ -80,15 +80,6 @@ static void test_non_empty(void) { assert_se(journal_file_next_entry(f, NULL, 0, DIRECTION_DOWN, &o, &p) == 1); assert_se(le64toh(o->entry.seqnum) == 1); - assert_se(journal_file_skip_entry(f, o, p, 2, &o, &p) == 1); - assert_se(le64toh(o->entry.seqnum) == 3); - - assert_se(journal_file_skip_entry(f, o, p, -2, &o, &p) == 1); - assert_se(le64toh(o->entry.seqnum) == 1); - - assert_se(journal_file_skip_entry(f, o, p, -2, &o, &p) == 1); - assert_se(le64toh(o->entry.seqnum) == 1); - assert_se(journal_file_find_data_object(f, test, strlen(test), NULL, &p) == 1); assert_se(journal_file_next_entry_for_data(f, NULL, 0, p, DIRECTION_DOWN, &o, NULL) == 1); assert_se(le64toh(o->entry.seqnum) == 1); |