[tracker: 19/21] libtracker-data: Don't call _init_token()



commit 5f484f892272bb026f4efe6be877b65151e374fc
Author: Andrea Azzarone <andrea azzarone canonical com>
Date:   Wed Feb 13 14:02:36 2019 +0000

    libtracker-data: Don't call _init_token()
    
    Don't call _init_token(). We don't use it underneath this function, and it will
    be later filled in with the property path for when we need it in _add_quad().

 src/libtracker-data/tracker-sparql.c | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql.c b/src/libtracker-data/tracker-sparql.c
index 346da7ce7..1788041e2 100644
--- a/src/libtracker-data/tracker-sparql.c
+++ b/src/libtracker-data/tracker-sparql.c
@@ -4340,8 +4340,6 @@ translate_PathElt (TrackerSparql  *sparql,
        /* PathElt ::= PathPrimary PathMod?
         */
        _call_rule (sparql, NAMED_RULE_PathPrimary, error);
-       _init_token (&sparql->current_state.predicate,
-                    sparql->current_state.prev_node, sparql);
 
        if (_check_in_rule (sparql, NAMED_RULE_PathMod)) {
                _call_rule (sparql, NAMED_RULE_PathMod, error);


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