summaryrefslogtreecommitdiff
path: root/src/journal/test-journal.c
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2014-12-16 15:47:01 +0100
committerMichal Schmidt <mschmidt@redhat.com>2014-12-18 11:53:08 +0100
commit14499361a537f769fadfb2e9323c8a65d31e6862 (patch)
treea0d022852fd7fc173296c6a4d2f75daeaed722c5 /src/journal/test-journal.c
parentae2adbcd09bd383b5a18728dfd32cf604c2c910e (diff)
journal: delete unused function journal_file_skip_entry()
Its only caller is a test.
Diffstat (limited to 'src/journal/test-journal.c')
-rw-r--r--src/journal/test-journal.c9
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);