[libgda: 10/15] Removing unnecesary declarations



commit 6f0665408c296769067da596295777d05c36330c
Author: Daniel Espinosa Ortiz <esodan gmail com>
Date:   Fri Jan 11 12:42:49 2019 -0600

    Removing unnecesary declarations

 libgda/gda-data-handler.c                | 2 --
 libgda/gda-holder.c                      | 4 ++--
 libgda/gda-lockable.c                    | 3 ---
 libgda/sql-parser/gda-statement-struct.h | 2 +-
 4 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/libgda/gda-data-handler.c b/libgda/gda-data-handler.c
index e7d332dc5..1757d4a5f 100644
--- a/libgda/gda-data-handler.c
+++ b/libgda/gda-data-handler.c
@@ -30,8 +30,6 @@
 #include "handlers/gda-handler-time.h"
 #include "handlers/gda-handler-type.h"
 
-#define MUTEX_LOCK() g_rec_mutex_lock(&init_rmutex)
-#define MUTEX_UNLOCK() g_rec_mutex_unlock(&init_rmutex)
 G_DEFINE_INTERFACE (GdaDataHandler, gda_data_handler, G_TYPE_OBJECT)
 
 char *gda_data_handler_get_sql_from_value_default (GdaDataHandler *dh, const GValue *value);
diff --git a/libgda/gda-holder.c b/libgda/gda-holder.c
index 781244ac6..3bec9913e 100644
--- a/libgda/gda-holder.c
+++ b/libgda/gda-holder.c
@@ -1736,8 +1736,8 @@ gda_holder_set_bind (GdaHolder *holder, GdaHolder *bind_to, GError **error)
        GValue *value1 = NULL;
        const GValue *value2 = NULL;
        GdaHolderPrivate *priv = NULL;
-  GdaHolderPrivate *bpriv = NULL;
- 
+       GdaHolderPrivate *bpriv = NULL;
+
        g_return_val_if_fail (GDA_IS_HOLDER (holder), FALSE);
        priv = gda_holder_get_instance_private (holder);
        g_return_val_if_fail (holder != bind_to, FALSE);
diff --git a/libgda/gda-lockable.c b/libgda/gda-lockable.c
index d22bbf517..d8a0b82cf 100644
--- a/libgda/gda-lockable.c
+++ b/libgda/gda-lockable.c
@@ -20,9 +20,6 @@
 
 #include <libgda/gda-lockable.h>
 
-#define MUTEX_LOCK() g_rec_mutex_lock(&init_rmutex)
-#define MUTEX_UNLOCK() g_rec_mutex_unlock(&init_rmutex)
-
 G_DEFINE_INTERFACE(GdaLockable, gda_lockable, G_TYPE_OBJECT)
 
 void
diff --git a/libgda/sql-parser/gda-statement-struct.h b/libgda/sql-parser/gda-statement-struct.h
index a72a39248..d10999e92 100644
--- a/libgda/sql-parser/gda-statement-struct.h
+++ b/libgda/sql-parser/gda-statement-struct.h
@@ -32,7 +32,7 @@ G_BEGIN_DECLS
  * GdaSqlStatement:
  * @sql: 
  * @stmt_type: type of statement 
- * contents: contents, cast it depending on @stmt_type (for example to a #GdaSqlStatementSelect).
+ * @contents: contents, cast it depending on @stmt_type (for example to a #GdaSqlStatementSelect).
  * @validity_meta_struct:
  *
  * This structure is the top level structure encapsulating several type of statements.


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