You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/06/20 12:19:17 UTC

[camel] 04/09: (chores) camel-mail: removed unused parameters

This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 93d12a8037efa76d6c8c5d387f641a9fc81b0c02
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Mon Jun 20 10:58:32 2022 +0200

    (chores) camel-mail: removed unused parameters
---
 .../src/main/java/org/apache/camel/component/mail/MailBinding.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailBinding.java b/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailBinding.java
index 94290d72a1b..d63989a8838 100644
--- a/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailBinding.java
+++ b/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailBinding.java
@@ -518,7 +518,7 @@ public class MailBinding {
                 LOG.trace("Attachment #{}: FileName: {}", i, attachmentFilename);
             }
             if (attachment != null) {
-                if (shouldAddAttachment(exchange, attachmentFilename, attachment.getDataHandler())) {
+                if (shouldAddAttachment()) {
                     // Create another body part
                     BodyPart messageBodyPart = new MimeBodyPart();
                     // Set the data handler to the attachment
@@ -639,7 +639,7 @@ public class MailBinding {
     /**
      * Strategy to allow filtering of attachments which are added on the Mail message
      */
-    protected boolean shouldAddAttachment(Exchange exchange, String attachmentFilename, DataHandler handler) {
+    protected boolean shouldAddAttachment() {
         return true;
     }