[gmime] minor code cleanup
- From: Jeffrey Stedfast <fejj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gmime] minor code cleanup
- Date: Wed, 15 Mar 2017 16:19:52 +0000 (UTC)
commit 763b86059364c11eab31b6d75588cb401fd973ba
Author: Jeffrey Stedfast <jestedfa microsoft com>
Date: Wed Mar 15 10:24:21 2017 -0400
minor code cleanup
gmime/gmime-certificate.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/gmime/gmime-certificate.c b/gmime/gmime-certificate.c
index 121393f..71e1752 100644
--- a/gmime/gmime-certificate.c
+++ b/gmime/gmime-certificate.c
@@ -599,7 +599,7 @@ g_mime_certificate_list_length (GMimeCertificateList *list)
* g_mime_certificate_list_clear:
* @list: a #GMimeCertificateList
*
- * Clears the list of addresses.
+ * Clears the list of certificates.
**/
void
g_mime_certificate_list_clear (GMimeCertificateList *list)
@@ -701,21 +701,19 @@ g_mime_certificate_list_remove (GMimeCertificateList *list, GMimeCertificate *ce
if ((index = g_mime_certificate_list_index_of (list, cert)) == -1)
return FALSE;
- g_mime_certificate_list_remove_at (list, index);
-
- return TRUE;
+ return g_mime_certificate_list_remove_at (list, index);
}
/**
* g_mime_certificate_list_remove_at:
* @list: a #GMimeCertificateList
- * @index: index to remove
+ * @index: index of the certificate to remove
*
* Removes a #GMimeCertificate from the #GMimeCertificateList at the specified
* index.
*
- * Returns: %TRUE if an #GMimeCertificate was removed or %FALSE otherwise.
+ * Returns: %TRUE if a #GMimeCertificate was removed or %FALSE otherwise.
**/
gboolean
g_mime_certificate_list_remove_at (GMimeCertificateList *list, int index)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]