[gxml] Removed unused functions



commit 8e9878886fc708a7f546ceedb6f56345051bdf36
Author: Daniel Espinosa <esodan gmail com>
Date:   Tue Apr 14 14:55:00 2015 -0500

    Removed unused functions

 gxml/Serialization.vala |    1 -
 gxml/libxml-Error.vala  |   15 +--------------
 gxml/libxml-Node.vala   |   22 ----------------------
 3 files changed, 1 insertions(+), 37 deletions(-)
---
diff --git a/gxml/Serialization.vala b/gxml/Serialization.vala
index 1d38dd5..3339524 100644
--- a/gxml/Serialization.vala
+++ b/gxml/Serialization.vala
@@ -430,7 +430,6 @@ namespace GXml {
 
                                        if (spec == null) {
                                                throw new SerializationError.UNKNOWN_PROPERTY ("Unknown 
property '%s' found, for object type '%s'-->XML: [%s]", pname, otype, obj_elem.to_string ());
-                                               return null;
                                        }
                                        Serialization.deserialize_property (spec, prop_elem, out val);
                                        obj.set_property (pname, val);
diff --git a/gxml/libxml-Error.vala b/gxml/libxml-Error.vala
index f8c2422..68a3d1a 100644
--- a/gxml/libxml-Error.vala
+++ b/gxml/libxml-Error.vala
@@ -4,19 +4,6 @@ namespace GXml {
                PARSER, WRITER;
        }
 
-       // TODO: rename
-       /**
-        * Returns error message for last registered error.
-        */
-       internal static string get_last_error_msg () {
-               Xml.Error* error = Xml.Error.get_last_error ();
-
-               if (error == null)
-                       return "No error reported by libxml2";
-               else
-                       return libxml2_error_to_string (error);
-       }
-
        // TODO: replace usage of this with GXml.get_last_error_msg
        internal static string libxml2_error_to_string (Xml.Error *e) {
                return "%s:%s:%d: %s:%d: %s".printf (
@@ -24,4 +11,4 @@ namespace GXml {
                        e->domain.to_string ().substring (9 /* skipping XML_FROM_ */),
                        e->code, e->file == null ? "<io>" : e->file, e->line, e->message);
        }
-}
\ No newline at end of file
+}
diff --git a/gxml/libxml-Node.vala b/gxml/libxml-Node.vala
index b855bbe..f5cf47c 100644
--- a/gxml/libxml-Node.vala
+++ b/gxml/libxml-Node.vala
@@ -71,28 +71,6 @@ namespace GXml {
                }
 
 
-               internal void dbg_inspect () {
-                       message ("node: %s", this.node_name);
-                       message ("  ns (namespace_prefix: %s, uri: %s)", this.namespace_prefix, 
this.namespace_uri);
-                       if (this.attributes != null) {
-                               message ("  attributes:");
-                               for (int i = 0; i < this.attributes.length; i++) {
-                                       Attr attr = this.attributes.item (i);
-                                       message ("    %s", attr.node_name);
-                               }
-                       }
-                       message ("  children:");
-                       if (this.child_nodes != null) {
-                               // TODO: consider having non-null hcild_nodes and attributes,
-                               //       and instead returning empty collections
-                               //     No, probably don't want that, as nodes which don't
-                               //     support them really do just want to return null ala spec
-                               foreach (xNode child in this.child_nodes) {
-                                       message ("    %s", child.node_name);
-                               }
-                       }
-               }
-
                /* Properties */
 
                /* TODO: determine best API for exposing these, as it's not defined in the IDL */


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