[gxml] CDATA: interface removed



commit 8fa396aa1e96b0eda2af49b9573a4ad6c7a4e5b2
Author: Daniel Espinosa <esodan gmail com>
Date:   Thu Jul 4 14:04:36 2019 -0500

    CDATA: interface removed
    
    This also removes CDATA type node as is not included in DOM4

 gxml/CDATA.vala        | 36 ------------------------------------
 gxml/Document.vala     |  7 -------
 gxml/GXmlCDATA.vala    | 41 -----------------------------------------
 gxml/GXmlDocument.vala |  5 -----
 gxml/GXmlNode.vala     |  2 --
 gxml/meson.build       |  2 --
 6 files changed, 93 deletions(-)
---
diff --git a/gxml/Document.vala b/gxml/Document.vala
index be50213..d67089e 100644
--- a/gxml/Document.vala
+++ b/gxml/Document.vala
@@ -93,13 +93,6 @@ public interface GXml.Document : Object, GXml.Node
    * {@link GXml.Node}, like a {@link GXml.Element} node.
    */
   public abstract GXml.Node create_comment (string text);
-  /**
-   * Creates a new {@link GXml.CDATA}.
-   *
-   * Is a matter of you to add as a child to any other
-   * {@link GXml.Node}, like a {@link GXml.Element} node.
-   */
-  public abstract GXml.Node create_cdata (string text);
   /**
    * Creates a new {@link GXml.ProcessingInstruction}.
    *
diff --git a/gxml/GXmlDocument.vala b/gxml/GXmlDocument.vala
index 24dd91a..1568b95 100644
--- a/gxml/GXmlDocument.vala
+++ b/gxml/GXmlDocument.vala
@@ -151,11 +151,6 @@ public class GXml.GDocument : GXml.GNode,
     var t = doc->new_text (text);
     return new GText (this, t);
   }
-  public GXml.Node create_cdata (string text)
-  {
-    var cd = doc->new_cdata_block (text, text.length);
-    return new GCDATA (this, cd);
-  }
   public override string to_string ()
   {
     try {
diff --git a/gxml/GXmlNode.vala b/gxml/GXmlNode.vala
index d53b619..1c71664 100644
--- a/gxml/GXmlNode.vala
+++ b/gxml/GXmlNode.vala
@@ -104,8 +104,6 @@ public abstract class GXml.GNode : Object,
         return new GAttribute (doc, (Xml.Attr*) node);
       case GXml.NodeType.TEXT:
         return new GText (doc, node);
-      case GXml.NodeType.CDATA_SECTION:
-        return new GCDATA (doc, node);
       case GXml.NodeType.ENTITY_REFERENCE:
         return nullnode;
       case GXml.NodeType.ENTITY:
diff --git a/gxml/meson.build b/gxml/meson.build
index 63a1aaf..3a317ba 100644
--- a/gxml/meson.build
+++ b/gxml/meson.build
@@ -38,7 +38,6 @@ configure_file(output : 'config.h',
 valasources = files ([
        'Collections.vala',
        'CssSelectorParser.vala',
-       'CDATA.vala',
        'Document.vala',
        'DocumentType.vala',
        'DomAttr.vala',
@@ -69,7 +68,6 @@ valasources = files ([
        'GomStringRef.vala',
        'GomText.vala',
        'GXmlAttribute.vala',
-       'GXmlCDATA.vala',
        'GXmlCharacter.vala',
        'GXmlChildNode.vala',
        'GXmlComment.vala',


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