[tracker/gdbus-evolution: 13/28] SPARQL: Drop support for Vala < 0.11



commit ca67228dd95b537b9ffaa06b7f117ff5bf1a6541
Author: Jürg Billeter <j bitron ch>
Date:   Mon Oct 25 10:49:38 2010 +0200

    SPARQL: Drop support for Vala < 0.11

 src/libtracker-data/tracker-sparql-query.vala |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-query.vala b/src/libtracker-data/tracker-sparql-query.vala
index 579ae3b..5472d89 100644
--- a/src/libtracker-data/tracker-sparql-query.vala
+++ b/src/libtracker-data/tracker-sparql-query.vala
@@ -89,9 +89,6 @@ namespace Tracker.Sparql {
 			return "\"%s:%s\"".printf (sql_identifier, suffix);
 		}
 
-#if VALA_0_12
-		// GLib.HashFunc and GLib.EqualFunc are generic delegates in Vala 0.11.0 and later
-
 		public static bool equal (Variable a, Variable b) {
 			return a.index == b.index;
 		}
@@ -99,15 +96,6 @@ namespace Tracker.Sparql {
 		public static uint hash (Variable variable) {
 			return (uint) variable.index;
 		}
-#else
-		public static bool equal (void* a, void* b) {
-			return ((Variable) a).index == ((Variable) b).index;
-		}
-
-		public static uint hash (void* variable) {
-			return (uint) ((Variable) variable).index;
-		}
-#endif
 	}
 
 	class Context {



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