[glom] Remove unused variables.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Remove unused variables.
- Date: Sun, 1 Nov 2015 12:57:46 +0000 (UTC)
commit b9eb16acbe295336f00187c26ebc104fe58767d0
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Oct 30 13:45:10 2015 +0100
Remove unused variables.
docs/postgres_gda_test.c | 15 ++++-----------
1 files changed, 4 insertions(+), 11 deletions(-)
---
diff --git a/docs/postgres_gda_test.c b/docs/postgres_gda_test.c
index fe7b612..f2ed665 100644
--- a/docs/postgres_gda_test.c
+++ b/docs/postgres_gda_test.c
@@ -11,15 +11,11 @@
/* Show errors from a working connection */
static void
get_errors (GdaConnection *connection)
-{
- GList *list;
- GList *node;
- GdaError *error;
-
- list = (GList *) gda_connection_get_errors (connection);
+{
+ GList* list = (GList *) gda_connection_get_errors (connection);
- for (node = g_list_first (list); node != NULL; node = g_list_next (node)) {
- error = (GdaError *) node->data;
+ for (GList* node = g_list_first (list); node != NULL; node = g_list_next (node)) {
+ GdaError* error = (GdaError*) node->data;
g_print ("Error no: %d\t", gda_error_get_number (error));
g_print ("desc: %s\t", gda_error_get_description (error));
g_print ("source: %s\t", gda_error_get_source (error));
@@ -34,9 +30,6 @@ main(int argc, char *argv[])
GdaClient *client = 0;
GdaConnection *con = 0;
- gboolean errors = FALSE;
- gint rows;
-
gda_init ("glom-gda-test", NULL, argc, argv);
/* 3. Create a gda client */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]