[libgda/LIBGDA_5.2: 1/4] mdb-provider: Remove no-op mdb_init() and mdb_exit() calls
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda/LIBGDA_5.2: 1/4] mdb-provider: Remove no-op mdb_init() and mdb_exit() calls
- Date: Fri, 17 Sep 2021 23:01:24 +0000 (UTC)
commit b5fb9ec54cbf38b5dd3f1e1e8bc80dc84a7aa460
Author: Hans de Goede <hdegoede redhat com>
Date: Sat Jul 10 13:30:47 2021 +0200
mdb-provider: Remove no-op mdb_init() and mdb_exit() calls
According to the mdbtools NEWS file for the 0.9.0 these functions have
always been no-ops:
"The previously-deprecated functions mdb_init() and mdb_exit() have been
removed. These functions did nothing; any calls to them should be excised with
prejudice."
And now they have been removed completely, since these were already
no-ops in older mdbtools versions we can safely drop them without
loosing compatibility with older mdbtools releases.
providers/mdb/gda-mdb-provider.c | 15 ---------------
1 file changed, 15 deletions(-)
---
diff --git a/providers/mdb/gda-mdb-provider.c b/providers/mdb/gda-mdb-provider.c
index 10bdc809d..82b085ca7 100644
--- a/providers/mdb/gda-mdb-provider.c
+++ b/providers/mdb/gda-mdb-provider.c
@@ -63,8 +63,6 @@ static const gchar *gda_mdb_provider_get_database (GdaServerProvider *provider,
static GObjectClass *parent_class = NULL;
-static GMutex mdb_init_mutex;
-static gint loaded_providers = 0;
char *g_input_ptr;
/*
@@ -107,13 +105,6 @@ gda_mdb_provider_finalize (GObject *object)
/* chain to parent class */
parent_class->finalize (object);
-
- /* call MDB exit function if there are no more providers */
- g_mutex_lock (&mdb_init_mutex);
- loaded_providers--;
- if (loaded_providers == 0)
- mdb_exit ();
- g_mutex_unlock (&mdb_init_mutex);
}
GType
@@ -148,12 +139,6 @@ gda_mdb_provider_new (void)
{
GdaMdbProvider *provider;
- g_mutex_lock (&mdb_init_mutex);
- if (loaded_providers == 0)
- mdb_init ();
- loaded_providers++;
- g_mutex_unlock (&mdb_init_mutex);
-
provider = g_object_new (gda_mdb_provider_get_type (), NULL);
return GDA_SERVER_PROVIDER (provider);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]