[tracker/wip/carlosg/coverity-fixes: 7/7] libtracker-data: Remove no-op function




commit d758f781cee7675b08e6a43a4a8a260d312f8037
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Sep 7 18:19:46 2020 +0200

    libtracker-data: Remove no-op function
    
    This function is a getter, and its return value ignored. Spotted by
    Coverity.
    
    CID: #1491437

 src/libtracker-data/tracker-sparql-parser.c | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-parser.c b/src/libtracker-data/tracker-sparql-parser.c
index 643da6991..939022fa5 100644
--- a/src/libtracker-data/tracker-sparql-parser.c
+++ b/src/libtracker-data/tracker-sparql-parser.c
@@ -548,8 +548,6 @@ tracker_parser_state_iterate (TrackerParserState   *state,
 
        /* Find the first parent that has a next child to handle */
        while (state->rule_states.len > 0) {
-               tracker_parser_state_peek_current_rule (state);
-
                if (tracker_parser_state_next_child (state, TRUE)) {
                        child = tracker_parser_state_lookup_child (state);
                        tracker_parser_state_skip_whitespace (state, parser);


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