[ease/json] Remove XML-related methods.
- From: Nate Stedman <natesm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ease/json] Remove XML-related methods.
- Date: Sun, 30 May 2010 21:22:20 +0000 (UTC)
commit b09588f2f5e17243f7f40a617394585b3638db8c
Author: Nate Stedman <natesm gmail com>
Date: Sat May 29 15:57:09 2010 -0400
Remove XML-related methods.
src/Element.vala | 13 -------------
src/ElementMap.vala | 27 ---------------------------
src/Slide.vala | 28 ----------------------------
3 files changed, 0 insertions(+), 68 deletions(-)
---
diff --git a/src/Element.vala b/src/Element.vala
index 3f95673..ea1408c 100644
--- a/src/Element.vala
+++ b/src/Element.vala
@@ -51,19 +51,6 @@ public class Ease.Element : GLib.Object
}
/**
- * Create a document from a file that already exists.
- *
- * Currently, this simply invokes to_xml() on the Element's
- * { link ElementMap}. Although the { link ElementMap} is a public
- * field, this could change in the future, so always use to_xml()
- * on the Element itself.
- */
- public string to_xml()
- {
- return data.to_xml();
- }
-
- /**
* Creates HTML markup for this Element.
*
* The <div> tag for this Element is appended to the "HTML" parameter.
diff --git a/src/ElementMap.vala b/src/ElementMap.vala
index 22ba1a9..974316f 100644
--- a/src/ElementMap.vala
+++ b/src/ElementMap.vala
@@ -44,33 +44,6 @@ public class Ease.ElementMap
}
/**
- * Output this ElementData as XML.
- *
- * Returns an XML string of the represented { link Element}'s
- * data. Called by the represented { link Element} when that
- * object's to_xml() method is called.
- */
- public string to_xml()
- {
- string xml = "", text = "";
-
- foreach (var key in map.keys)
- {
- if (key != "text")
- {
- xml += key + "=\"" + get(key) + "\" ";
- }
- else
- {
- text = get(key);
- }
- }
- return text == ""
- ? "\t\t\t<element " + xml + "/>\n"
- : "\t\t\t<element " + xml + ">" + text + "</element>\n";
- }
-
- /**
* Output this ElementData as JSON.
*
* Returns a JSON object with the element's data.
diff --git a/src/Slide.vala b/src/Slide.vala
index a53dc29..eba22fe 100644
--- a/src/Slide.vala
+++ b/src/Slide.vala
@@ -88,34 +88,6 @@ public class Ease.Slide
}
/**
- * Outputs this Slide to XML.
- *
- * This returns a <slide> tag containing information soecific to the
- * Slide and a tag for each { link Element}.
- */
- public string to_xml()
- {
- string output = "\t\t<slide " +
- "transition=\"" + transition + "\" " +
- "variant=\"" + variant + "\" " +
- "time=\"" + transition_time.to_string() + "\" " +
- (background_image != null ?
- ("background_image=\"" +
- background_image + "\" ") :
- ("background_color=\"" +
- background_color.to_string()
- + "\" ")) + ">\n";
-
- foreach (var e in elements)
- {
- output += e.to_xml();
- }
-
- output += "</slide>\n";
- return output;
- }
-
- /**
* Creates HTML markup for this Slide.
*
* The <div> tag for this Slide is appended to the "HTML" parameter.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]