[gxml] Comment: interface removed



commit 9edfbaf4a74c67b3c53300943f6e3b6c7eca2b4f
Author: Daniel Espinosa <esodan gmail com>
Date:   Thu Jul 4 13:38:35 2019 -0500

    Comment: interface removed

 gxml/Comment.vala     | 35 -----------------------------------
 gxml/GXmlComment.vala |  2 +-
 gxml/GXmlNode.vala    |  4 ++--
 gxml/meson.build      |  1 -
 4 files changed, 3 insertions(+), 39 deletions(-)
---
diff --git a/gxml/GXmlComment.vala b/gxml/GXmlComment.vala
index d1a8188..dae2686 100644
--- a/gxml/GXmlComment.vala
+++ b/gxml/GXmlComment.vala
@@ -24,7 +24,7 @@ using Gee;
 /**
  * DOM4 Class implemeting {@link GXml.Comment} and {@link GXml.DomComment} interface, powered by libxml2 
library.
  */
-public class GXml.GComment : GXml.GCharacterData, GXml.Comment, GXml.DomComment
+public class GXml.GComment : GXml.GCharacterData, GXml.DomComment
 {
   public GComment (GDocument doc, Xml.Node *node)
   {
diff --git a/gxml/GXmlNode.vala b/gxml/GXmlNode.vala
index 3f3c437..d53b619 100644
--- a/gxml/GXmlNode.vala
+++ b/gxml/GXmlNode.vala
@@ -199,7 +199,7 @@ public abstract class GXml.GNode : Object,
            string t = null;
            if (this is GXml.DomText) return (this as DomText).data;
            if (this is GXml.DomProcessingInstruction) return this.@value;
-           if (this is GXml.Comment) return this.@value;
+           if (this is GXml.DomComment) return this.@value;
            if (this is GXml.Document || this is GXml.Element) {
              message ("Is Element");
              foreach (GXml.Node n in children_nodes) {
@@ -216,7 +216,7 @@ public abstract class GXml.GNode : Object,
         var t = this.document.create_text (value);
         this.document.children_nodes.add (t);
       }
-      if (!(this is GXml.DomText || this is GXml.Comment || this is GXml.DomProcessingInstruction)) return;
+      if (!(this is GXml.DomText || this is GXml.DomComment || this is GXml.DomProcessingInstruction)) 
return;
       this.@value = value;
          }
        }
diff --git a/gxml/meson.build b/gxml/meson.build
index 6a47308..da476f3 100644
--- a/gxml/meson.build
+++ b/gxml/meson.build
@@ -40,7 +40,6 @@ valasources = files ([
        'CssSelectorParser.vala',
        'Attribute.vala',
        'CDATA.vala',
-       'Comment.vala',
        'Document.vala',
        'DocumentType.vala',
        'DomAttr.vala',


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