[tracker/wip/carlosg/tracker-3.0-api-breaks: 68/79] libtracker-sparql: Remove needless TrackerNotifier check



commit 9792c80a6e2e830c3134600996c8d09302b4a24b
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Jan 26 23:25:18 2020 +0100

    libtracker-sparql: Remove needless TrackerNotifier check
    
    We now forward inserts and deletes as is, and attempt no event
    coalescing. This path with event_type == -1 is unused.

 src/libtracker-sparql/tracker-notifier.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/src/libtracker-sparql/tracker-notifier.c b/src/libtracker-sparql/tracker-notifier.c
index 0a2f2c0f8..6ee186109 100644
--- a/src/libtracker-sparql/tracker-notifier.c
+++ b/src/libtracker-sparql/tracker-notifier.c
@@ -271,14 +271,8 @@ tracker_notifier_event_cache_take_events (TrackerNotifierEventCache *cache)
                next = g_sequence_iter_next (iter);
                event = g_sequence_get (iter);
 
-               if (event->type == -1) {
-                       /* This event turned out a NO-OP, just remove it */
-                       g_sequence_remove (iter);
-               } else {
-                       g_ptr_array_add (events, tracker_notifier_event_ref (event));
-                       g_sequence_remove (iter);
-               }
-
+               g_ptr_array_add (events, tracker_notifier_event_ref (event));
+               g_sequence_remove (iter);
                iter = next;
        }
 


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