[balsa/send-issues] send: Remove an unused parameter



commit e298662a4177221a87ac7a8662d16d39d2f196b2
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Wed Mar 2 22:22:37 2022 -0500

    send: Remove an unused parameter
    
    modified:   libbalsa/send.c
    modified:   libbalsa/send.h
    modified:   src/sendmsg-window.c

 libbalsa/send.c      |  1 -
 libbalsa/send.h      |  1 -
 src/sendmsg-window.c | 14 +++-----------
 3 files changed, 3 insertions(+), 13 deletions(-)
---
diff --git a/libbalsa/send.c b/libbalsa/send.c
index e990d5575..a637df294 100644
--- a/libbalsa/send.c
+++ b/libbalsa/send.c
@@ -1531,7 +1531,6 @@ create_mime_message(LibBalsaMessage *message,
 gboolean
 libbalsa_message_postpone(LibBalsaMessage *message,
                           LibBalsaMailbox *draftbox,
-                          LibBalsaMessage *reply_message,
                           gchar          **extra_headers,
                           gboolean         flow,
                           GError         **error)
diff --git a/libbalsa/send.h b/libbalsa/send.h
index 7c763a4ee..a04af97fa 100644
--- a/libbalsa/send.h
+++ b/libbalsa/send.h
@@ -43,7 +43,6 @@ enum _LibBalsaMsgCreateResult {
 
 gboolean libbalsa_message_postpone(LibBalsaMessage * message,
                                   LibBalsaMailbox * draftbox,
-                                  LibBalsaMessage * reply_message,
                                   gchar ** extra_headers,
                                   gboolean flow, 
                                   GError **error);
diff --git a/src/sendmsg-window.c b/src/sendmsg-window.c
index b021187e9..8ed6772ff 100644
--- a/src/sendmsg-window.c
+++ b/src/sendmsg-window.c
@@ -5605,17 +5605,9 @@ message_postpone(BalsaSendmsg * bsmsg)
     g_ptr_array_add(headers, g_strdup_printf("%d", bsmsg->type));
     g_ptr_array_add(headers, NULL);
 
-    if ((bsmsg->type == SEND_REPLY || bsmsg->type == SEND_REPLY_ALL ||
-        bsmsg->type == SEND_REPLY_GROUP))
-       successp = libbalsa_message_postpone(message, balsa_app.draftbox,
-                                             bsmsg->parent_message,
-                                             (gchar **) headers->pdata,
-                                             bsmsg->flow, &error);
-    else
-       successp = libbalsa_message_postpone(message, balsa_app.draftbox,
-                                             NULL,
-                                             (gchar **) headers->pdata,
-                                             bsmsg->flow, &error);
+    successp = libbalsa_message_postpone(message, balsa_app.draftbox,
+                                         (gchar **) headers->pdata,
+                                         bsmsg->flow, &error);
     g_ptr_array_foreach(headers, (GFunc) g_free, NULL);
     g_ptr_array_free(headers, TRUE);
 


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