[dconf] editor: drop Vala 0.12 compatibility code
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf] editor: drop Vala 0.12 compatibility code
- Date: Mon, 6 Feb 2012 19:31:15 +0000 (UTC)
commit 27f6fff96ea20844cbb17300e8e4bb0fe093b3da
Author: Ryan Lortie <desrt desrt ca>
Date: Mon Feb 6 14:23:40 2012 -0500
editor: drop Vala 0.12 compatibility code
We had some '#if VALA_0_14' guards for compatibility with older Vala
versions. We're a far way from being able to build with valac 0.12, so
drop those.
editor/dconf-model.vala | 12 ------------
1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/editor/dconf-model.vala b/editor/dconf-model.vala
index 401d3c6..46afa3e 100644
--- a/editor/dconf-model.vala
+++ b/editor/dconf-model.vala
@@ -349,11 +349,7 @@ public class KeyModel: GLib.Object, Gtk.TreeModel
return iter_nth_child(out iter, null, path.get_indices()[0]);
}
-#if VALA_0_14
public Gtk.TreePath? get_path(Gtk.TreeIter iter)
-#else
- public Gtk.TreePath get_path(Gtk.TreeIter iter)
-#endif
{
var path = new Gtk.TreePath();
path.append_index(get_key(iter).index);
@@ -491,11 +487,7 @@ public class EnumModel: GLib.Object, Gtk.TreeModel
return iter_nth_child(out iter, null, path.get_indices()[0]);
}
-#if VALA_0_14
public Gtk.TreePath? get_path(Gtk.TreeIter iter)
-#else
- public Gtk.TreePath get_path(Gtk.TreeIter iter)
-#endif
{
var path = new Gtk.TreePath();
path.append_index((int)get_enum_value(iter).index);
@@ -672,11 +664,7 @@ public class SettingsModel: GLib.Object, Gtk.TreeModel
return true;
}
-#if VALA_0_14
public Gtk.TreePath? get_path(Gtk.TreeIter iter)
-#else
- public Gtk.TreePath get_path(Gtk.TreeIter iter)
-#endif
{
var path = new Gtk.TreePath();
for (var d = get_directory(iter); d != root; d = d.parent)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]