[libgda: 1/2] DDL: Removed unused code



commit 1acdf9f206fc5c6909928f621b37eaf27c49010d
Author: Pavlo Solntsev <p sun fun gmail com>
Date:   Thu Aug 16 15:14:50 2018 -0500

    DDL: Removed unused code

 libgda/gda-ddl-buildable.c | 26 ++++++++++++++++++++++++--
 libgda/gda-ddl-buildable.h |  8 --------
 2 files changed, 24 insertions(+), 10 deletions(-)
---
diff --git a/libgda/gda-ddl-buildable.c b/libgda/gda-ddl-buildable.c
index 0adb5c322..761534a82 100644
--- a/libgda/gda-ddl-buildable.c
+++ b/libgda/gda-ddl-buildable.c
@@ -21,8 +21,6 @@
 
 #include "gda-ddl-buildable.h"
 
-G_DEFINE_QUARK (gda-ddl-buildable-error, gda_ddl_buildable_error)
-
 G_DEFINE_INTERFACE (GdaDdlBuildable, gda_ddl_buildable, G_TYPE_OBJECT)
 
 /**
@@ -43,6 +41,18 @@ gda_ddl_buildable_default_init (GdaDdlBuildableInterface *iface)
   /* add properties and signals to the interface here */
 }
 
+/**
+ * gda_ddl_buildable_parse_node:
+ * @self: an instance of #GdaDdlBuildable where parsed data should be storred
+ * @node: a node to parse
+ * @error: an object to store error
+ *
+ * Parse xml node
+ *
+ * Returns: %TRUE on success, %FALSE if an error occurred
+ * Since: 6.0
+ * Stability: stable
+ */
 gboolean
 gda_ddl_buildable_parse_node (GdaDdlBuildable  *self,
                               xmlNodePtr        node,
@@ -58,6 +68,18 @@ gda_ddl_buildable_parse_node (GdaDdlBuildable  *self,
   return iface->parse_node (self, node, error);
 }
 
+/**
+ * gda_ddl_buildable_write_node:
+ * @self: an instance of #GdaDdlBuildable where data should be taken 
+ * @node: a node to write data in
+ * @error: an object to store error
+ *
+ * Write content from the @self to the @node 
+ *
+ * Returns: %TRUE on success, %FALSE if an error occurred
+ * Since: 6.0
+ * Stability: stable
+ */
 gboolean
 gda_ddl_buildable_write_node (GdaDdlBuildable *self,
                               xmlNodePtr node,
diff --git a/libgda/gda-ddl-buildable.h b/libgda/gda-ddl-buildable.h
index 3787a45ef..da48fc3bb 100644
--- a/libgda/gda-ddl-buildable.h
+++ b/libgda/gda-ddl-buildable.h
@@ -52,14 +52,6 @@ gboolean gda_ddl_buildable_write_node (GdaDdlBuildable *self,
                                        xmlNodePtr node,
                                        GError **error);
 
-typedef enum {
-    GDA_DDL_BUILDABLE_ERROR_START_ELEMENT,
-    GDA_DDL_BUILDABLE_ERROR_ATTRIBUTE,
-    GDA_DDL_BUILDABLE_ERROR_END_ELEMENT
-}GdaDdlBuildableError;
-
-#define GDA_DDL_BUILDABLE_ERROR gda_ddl_buildable_error_quark()
-GQuark gda_ddl_buildable_error_quark (void);
 G_END_DECLS
 
 #endif /* end of include guard: GDA-DDL-BUILDABLE_H */


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