[tracker/gdbus: 13/22] SPARQL: Drop support for Vala < 0.11
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/gdbus: 13/22] SPARQL: Drop support for Vala < 0.11
- Date: Mon, 25 Oct 2010 12:53:24 +0000 (UTC)
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]