gtlsdatabase: Don't complain if no callbacks for async functions
authorStef Walter <stefw@gnome.org>
Wed, 1 Aug 2012 12:22:53 +0000 (14:22 +0200)
committerStef Walter <stefw@gnome.org>
Fri, 3 Aug 2012 15:39:10 +0000 (17:39 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=681118

gio/gtlsdatabase.c

index 9d2b77e..caab282 100644 (file)
@@ -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;