[glib] gtlsdatabase: Don't complain if no callbacks for async functions



commit b913b0c29ed7269a1684ec15f27b59a8ad2ef5e4
Author: Stef Walter <stefw gnome org>
Date:   Wed Aug 1 14:22:53 2012 +0200

    gtlsdatabase: Don't complain if no callbacks for async functions
    
    https://bugzilla.gnome.org/show_bug.cgi?id=681118

 gio/gtlsdatabase.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/gio/gtlsdatabase.c b/gio/gtlsdatabase.c
index 9d2b77e..caab282 100644
--- a/gio/gtlsdatabase.c
+++ b/gio/gtlsdatabase.c
@@ -220,8 +220,6 @@ g_tls_database_real_lookup_certificate_for_handle_async (GTlsDatabase
   GSimpleAsyncResult *res;
   AsyncLookupCertificateForHandle *args;
 
-  g_return_if_fail (callback != NULL);
-
   args = g_slice_new0 (AsyncLookupCertificateForHandle);
   args->handle = g_strdup (handle);
   args->interaction = interaction ? g_object_ref (interaction) : NULL;
@@ -305,9 +303,6 @@ g_tls_database_real_lookup_certificate_issuer_async (GTlsDatabase           *sel
   GSimpleAsyncResult *res;
   AsyncLookupCertificateIssuer *args;
 
-  g_return_if_fail (G_IS_TLS_CERTIFICATE (certificate));
-  g_return_if_fail (callback != NULL);
-
   args = g_slice_new0 (AsyncLookupCertificateIssuer);
   args->certificate = g_object_ref (certificate);
   args->flags = flags;
@@ -394,8 +389,6 @@ g_tls_database_real_lookup_certificates_issued_by_async (GTlsDatabase
   GSimpleAsyncResult *res;
   AsyncLookupCertificatesIssuedBy *args;
 
-  g_return_if_fail (callback);
-
   args = g_slice_new0 (AsyncLookupCertificatesIssuedBy);
   args->issuer = g_byte_array_ref (issuer);
   args->flags = flags;



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