From 6b2f22223696a68ca44ed77e3d140ece4a390d07 Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Thu, 10 Jan 2013 16:04:35 +0100 Subject: wixl: move get_attribute_content() to wix.vala --- tools/wixl/util.vala | 7 ------- tools/wixl/wix.vala | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'tools/wixl') diff --git a/tools/wixl/util.vala b/tools/wixl/util.vala index 11f1588..fd11678 100644 --- a/tools/wixl/util.vala +++ b/tools/wixl/util.vala @@ -58,13 +58,6 @@ namespace Wixl { return (t + 134774ULL * 86400ULL) * 10000000ULL; } - string get_attribute_content (Xml.Attr *attr) { - if (attr->children == null) - return ""; - - return attr->children->content; - } - public string indent (string space, string text) { var indented = ""; diff --git a/tools/wixl/wix.vala b/tools/wixl/wix.vala index b31c29b..b3531d8 100644 --- a/tools/wixl/wix.vala +++ b/tools/wixl/wix.vala @@ -135,6 +135,13 @@ namespace Wixl { return null; } + string get_attribute_content (Xml.Attr *attr) { + if (attr->children == null) + return ""; + + return attr->children->content; + } + protected void load_properties_from_node (Xml.Node *node) throws Wixl.Error { for (var prop = node->properties; prop != null; prop = prop->next) { if (prop->type == Xml.ElementType.ATTRIBUTE_NODE) -- cgit