[tracker-miners/wip/carlosg/parallel-installable: 25/36] libtracker-miners-common: Drop tracker_domain_ontology_get_journal()



commit 0ced9761140793ba908056a8dbfbc5cc41c05e55
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Feb 23 21:32:02 2020 +0100

    libtracker-miners-common: Drop tracker_domain_ontology_get_journal()
    
    This is unused.

 src/libtracker-miners-common/libtracker-miners-common.vapi |  1 -
 src/libtracker-miners-common/tracker-domain-ontology.c     | 14 --------------
 src/libtracker-miners-common/tracker-domain-ontology.h     |  1 -
 3 files changed, 16 deletions(-)
---
diff --git a/src/libtracker-miners-common/libtracker-miners-common.vapi 
b/src/libtracker-miners-common/libtracker-miners-common.vapi
index aaf4a108d..cf5955921 100644
--- a/src/libtracker-miners-common/libtracker-miners-common.vapi
+++ b/src/libtracker-miners-common/libtracker-miners-common.vapi
@@ -92,7 +92,6 @@ namespace Tracker {
        public class DomainOntology : GLib.Object, GLib.Initable {
                public DomainOntology (string? name, GLib.Cancellable? cancellable) throws GLib.Error;
                public GLib.File get_cache ();
-               public GLib.File? get_journal ();
                public GLib.File get_ontology ();
                public string get_domain (string? suffix = null);
        }
diff --git a/src/libtracker-miners-common/tracker-domain-ontology.c 
b/src/libtracker-miners-common/tracker-domain-ontology.c
index 3fbc628c5..0e0dc4a7f 100644
--- a/src/libtracker-miners-common/tracker-domain-ontology.c
+++ b/src/libtracker-miners-common/tracker-domain-ontology.c
@@ -28,7 +28,6 @@ struct _TrackerDomainOntology {
        gint ref_count;
        /* DomainOntologies section */
        GFile *cache_location;
-       GFile *journal_location;
        GFile *ontology_location;
        gchar *name;
        gchar *domain;
@@ -86,7 +85,6 @@ tracker_domain_ontology_unref (TrackerDomainOntology *domain_ontology)
                return;
 
        g_clear_object (&domain_ontology->cache_location);
-       g_clear_object (&domain_ontology->journal_location);
        g_clear_object (&domain_ontology->ontology_location);
        g_free (domain_ontology->ontology_name);
        g_free (domain_ontology->name);
@@ -285,12 +283,6 @@ tracker_domain_ontology_new (const gchar   *domain_name,
        if (inner_error)
                goto end;
 
-       domain_ontology->journal_location =
-               key_file_get_location (key_file, DOMAIN_ONTOLOGY_SECTION,
-                                      JOURNAL_KEY, FALSE, FALSE, &inner_error);
-       if (inner_error)
-               goto end;
-
        domain_ontology->ontology_location =
                key_file_get_location (key_file, DOMAIN_ONTOLOGY_SECTION,
                                       ONTOLOGY_KEY, FALSE, TRUE, &inner_error);
@@ -347,12 +339,6 @@ tracker_domain_ontology_get_cache (TrackerDomainOntology *domain_ontology)
        return domain_ontology->cache_location;
 }
 
-GFile *
-tracker_domain_ontology_get_journal (TrackerDomainOntology *domain_ontology)
-{
-       return domain_ontology->journal_location;
-}
-
 GFile *
 tracker_domain_ontology_get_ontology (TrackerDomainOntology *domain_ontology)
 {
diff --git a/src/libtracker-miners-common/tracker-domain-ontology.h 
b/src/libtracker-miners-common/tracker-domain-ontology.h
index 12434a212..3cc6407a5 100644
--- a/src/libtracker-miners-common/tracker-domain-ontology.h
+++ b/src/libtracker-miners-common/tracker-domain-ontology.h
@@ -39,7 +39,6 @@ TrackerDomainOntology * tracker_domain_ontology_ref      (TrackerDomainOntology
 void    tracker_domain_ontology_unref        (TrackerDomainOntology *domain_ontology);
 
 GFile * tracker_domain_ontology_get_cache    (TrackerDomainOntology *domain_ontology);
-GFile * tracker_domain_ontology_get_journal  (TrackerDomainOntology *domain_ontology);
 GFile * tracker_domain_ontology_get_ontology (TrackerDomainOntology *domain_ontology);
 
 gchar * tracker_domain_ontology_get_domain   (TrackerDomainOntology *domain_ontology,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]