[tracker] Revert "libtracker-data: Relate Variable objects to their origin Context"



commit 06d47e8cb113a821c031b5ab8c07895c4473cfb4
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon May 30 01:28:46 2016 +0200

    Revert "libtracker-data: Relate Variable objects to their origin Context"
    
    Not needed anymore.
    
    This reverts commit 5c0fe132eb7d0e193ccc669447e015f8f9e8b3d6.

 src/libtracker-data/tracker-sparql-query.vala |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-query.vala b/src/libtracker-data/tracker-sparql-query.vala
index e2166fc..1ff4483 100644
--- a/src/libtracker-data/tracker-sparql-query.vala
+++ b/src/libtracker-data/tracker-sparql-query.vala
@@ -83,14 +83,12 @@ namespace Tracker.Sparql {
                public string sql_expression { get; private set; }
                public VariableBinding binding;
                string sql_identifier;
-               public weak Context origin_context { get; private set; }
 
-               public Variable (string name, int index, Context context) {
+               public Variable (string name, int index) {
                        this.name = name;
                        this.index = index;
                        this.sql_identifier = "%d_u".printf (index);
                        this.sql_expression = "\"%s\"".printf (sql_identifier);
-                       this.origin_context = context;
                }
 
                public string get_extra_sql_expression (string suffix) {
@@ -154,7 +152,7 @@ namespace Tracker.Sparql {
                internal unowned Variable get_variable (string name) {
                        unowned Variable result = this.var_map.lookup (name);
                        if (result == null) {
-                               var variable = new Variable (name, ++query.last_var_index, this);
+                               var variable = new Variable (name, ++query.last_var_index);
                                this.var_map.insert (name, variable);
 
                                result = variable;


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