struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [10/14] struts git commit: Drops unused code
Date Fri, 25 Nov 2016 18:18:05 GMT
Drops unused code


Project: http://git-wip-us.apache.org/repos/asf/struts/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/de51e797
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/de51e797
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/de51e797

Branch: refs/heads/master
Commit: de51e7971847b8e501a6d6efe076ee506a62ecb4
Parents: 6280feb
Author: Lukasz Lenart <lukaszlenart@apache.org>
Authored: Tue Nov 22 18:03:14 2016 +0100
Committer: Lukasz Lenart <lukaszlenart@apache.org>
Committed: Tue Nov 22 18:03:14 2016 +0100

----------------------------------------------------------------------
 .../multipart/JakartaStreamMultiPartRequest.java       | 13 -------------
 1 file changed, 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/de51e797/core/src/main/java/org/apache/struts2/dispatcher/multipart/JakartaStreamMultiPartRequest.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/struts2/dispatcher/multipart/JakartaStreamMultiPartRequest.java
b/core/src/main/java/org/apache/struts2/dispatcher/multipart/JakartaStreamMultiPartRequest.java
index 49ca2be..63760e6 100644
--- a/core/src/main/java/org/apache/struts2/dispatcher/multipart/JakartaStreamMultiPartRequest.java
+++ b/core/src/main/java/org/apache/struts2/dispatcher/multipart/JakartaStreamMultiPartRequest.java
@@ -506,19 +506,6 @@ public class JakartaStreamMultiPartRequest implements MultiPartRequest
{
     }
 
     /**
-     * Build action message.
-     *
-     * @param e the Throwable/Exception
-     * @param args arguments
-     * @return action message
-     */
-    private String buildMessage(Throwable e, Object[] args) {
-        String messageKey = "struts.message.upload.message." + e.getClass().getSimpleName();
-        LOG.debug("Preparing message for key: [{}]", messageKey);
-        return LocalizedTextUtil.findText(this.getClass(), messageKey, defaultLocale, e.getMessage(),
args);
-    }
-
-    /**
      * Internal data structure used to store a reference to information needed
      * to later pass post processing data to the <code>FileUploadInterceptor</code>.
      *


Mime
View raw message