Skip to content

Commit

Permalink
Remove deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
markt-asf committed Jun 23, 2023
1 parent e6ad02f commit d6c962a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 37 deletions.
28 changes: 0 additions & 28 deletions java/org/apache/catalina/connector/Request.java
Original file line number Diff line number Diff line change
Expand Up @@ -3162,34 +3162,6 @@ protected void parseParameters() {
}


/**
* Read post body into an array.
*
* @param body The bytes array in which the body will be read
* @param len The body length
*
* @return the bytes count that has been read
*
* @throws IOException if an IO exception occurred
*
* @deprecated Unused. Will be removed in Tomcat 11.0.x onwards. Use {@link #readPostBodyFully(byte[], int)}
*/
@Deprecated
protected int readPostBody(byte[] body, int len) throws IOException {

int offset = 0;
do {
int inputLen = getStream().read(body, offset, len - offset);
if (inputLen <= 0) {
return offset;
}
offset += inputLen;
} while ((len - offset) > 0);
return len;

}


/**
* Read post body into an array.
*
Expand Down
2 changes: 0 additions & 2 deletions java/org/apache/catalina/filters/FailedRequestFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ protected Log getLogger() {
return log;
}

@SuppressWarnings("deprecation")
@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
throws IOException, ServletException {
Expand All @@ -76,7 +75,6 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha
case INVALID_CONTENT_TYPE:
case MULTIPART_CONFIG_INVALID:
case NO_NAME:
case REQUEST_BODY_INCOMPLETE:
case URL_DECODING:
case CLIENT_DISCONNECT:
// Client is never going to see this so this is really just
Expand Down
7 changes: 0 additions & 7 deletions java/org/apache/tomcat/util/http/Parameters.java
Original file line number Diff line number Diff line change
Expand Up @@ -503,13 +503,6 @@ public enum FailReason {
IO_ERROR,
NO_NAME,
POST_TOO_LARGE,
/**
* Same as {@link #CLIENT_DISCONNECT}.
*
* @deprecated Unused. Will be removed in Tomcat 11.0.x onwards
*/
@Deprecated
REQUEST_BODY_INCOMPLETE,
TOO_MANY_PARAMETERS,
UNKNOWN,
URL_DECODING
Expand Down

0 comments on commit d6c962a

Please sign in to comment.