summaryrefslogtreecommitdiff
path: root/src/gl-journal.c
diff options
context:
space:
mode:
authorLars Uebernickel <lars@uebernic.de>2015-02-14 19:42:20 +0100
committerLars Uebernickel <lars@uebernic.de>2015-02-16 07:56:03 +0100
commit2423dde4922f9caa79d18cdbedbe2eb00db5f7d1 (patch)
tree271b7e9d3f9b7c4134757b449424e42ac3523868 /src/gl-journal.c
parent0b8e638618cdfb5370b2f4525f7a082a621d9312 (diff)
downloadgnome-logs-2423dde4922f9caa79d18cdbedbe2eb00db5f7d1.tar.gz
journal: remove query_cursor()
Diffstat (limited to 'src/gl-journal.c')
-rw-r--r--src/gl-journal.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/src/gl-journal.c b/src/gl-journal.c
index fcba645..1bb09ea 100644
--- a/src/gl-journal.c
+++ b/src/gl-journal.c
@@ -509,56 +509,6 @@ gl_journal_set_matches (GlJournal *journal,
priv->mandatory_fields = (gchar **) g_ptr_array_free (mandatory_fields, FALSE);
}
-GlJournalResult *
-gl_journal_query_cursor (GlJournal *self,
- const gchar *cursor)
-{
- GlJournalPrivate *priv;
- sd_journal *journal;
- gint ret;
- GlJournalResult *result = NULL;
-
- g_return_val_if_fail (GL_JOURNAL (self), NULL);
- g_return_val_if_fail (cursor != NULL, NULL);
-
- priv = gl_journal_get_instance_private (self);
- journal = priv->journal;
-
- ret = sd_journal_seek_cursor (journal, cursor);
-
- if (ret < 0)
- {
- g_warning ("Error seeking to cursor position: %s", g_strerror (-ret));
- goto out;
- }
-
- ret = sd_journal_next (journal);
-
- if (ret < 0)
- {
- g_warning ("Error positioning cursor in systemd journal: %s",
- g_strerror (-ret));
- }
-
- ret = sd_journal_test_cursor (journal, cursor);
-
- if (ret < 0)
- {
- g_warning ("Error testing cursor string: %s", g_strerror (-ret));
- goto out;
- }
- else if (ret == 0)
- {
- g_warning ("Cursor string does not match journal entry");
- goto out;
- }
-
- result = _gl_journal_query_result (self);
-
-out:
- return result;
-}
-
static void
gl_journal_result_free (GlJournalResult *result,
G_GNUC_UNUSED gpointer user_data)