[evolution-data-server] CamelCertDB: Remove unused 'cert_chunks' member.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] CamelCertDB: Remove unused 'cert_chunks' member.
- Date: Mon, 23 Sep 2013 16:09:19 +0000 (UTC)
commit d91a04276b530cedba35039d798cbbfb73f0af6c
Author: Matthew Barnes <mbarnes redhat com>
Date: Sun Sep 22 10:08:09 2013 -0400
CamelCertDB: Remove unused 'cert_chunks' member.
Checked but never set -- always NULL.
camel/camel-certdb.c | 16 ++--------------
camel/camel-certdb.h | 3 ---
2 files changed, 2 insertions(+), 17 deletions(-)
---
diff --git a/camel/camel-certdb.c b/camel/camel-certdb.c
index f306acb..9d67772 100644
--- a/camel/camel-certdb.c
+++ b/camel/camel-certdb.c
@@ -147,9 +147,6 @@ certdb_finalize (GObject *object)
g_free (certdb->filename);
- if (certdb->cert_chunks)
- camel_memchunk_destroy (certdb->cert_chunks);
-
g_mutex_clear (&priv->db_lock);
g_mutex_clear (&priv->io_lock);
g_mutex_clear (&priv->alloc_lock);
@@ -190,8 +187,6 @@ camel_certdb_init (CamelCertDB *certdb)
certdb->cert_size = sizeof (CamelCert);
- certdb->cert_chunks = NULL;
-
certdb->certs = g_ptr_array_new ();
certdb->cert_hash = g_hash_table_new_full (certdb_key_hash, certdb_key_equal, certdb_key_free, NULL);
@@ -606,11 +601,7 @@ certdb_cert_new (CamelCertDB *certdb)
{
CamelCert *cert;
- if (certdb->cert_chunks)
- cert = camel_memchunk_alloc0 (certdb->cert_chunks);
- else
- cert = g_malloc0 (certdb->cert_size);
-
+ cert = g_malloc0 (certdb->cert_size);
cert->refcount = 1;
return cert;
@@ -674,10 +665,7 @@ camel_certdb_cert_unref (CamelCertDB *certdb,
if (g_atomic_int_dec_and_test (&cert->refcount)) {
class->cert_free (certdb, cert);
- if (certdb->cert_chunks)
- camel_memchunk_free (certdb->cert_chunks, cert);
- else
- g_free (cert);
+ g_free (cert);
}
}
diff --git a/camel/camel-certdb.h b/camel/camel-certdb.h
index 64c563b..0524e8a 100644
--- a/camel/camel-certdb.h
+++ b/camel/camel-certdb.h
@@ -28,7 +28,6 @@
#define CAMEL_CERTDB_H
#include <stdio.h>
-#include <camel/camel-memchunk.h>
#include <camel/camel-object.h>
/* Standard GObject macros */
@@ -99,8 +98,6 @@ struct _CamelCertDB {
guint32 cert_size;
- CamelMemChunk *cert_chunks;
-
GPtrArray *certs;
GHashTable *cert_hash;
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]