Skip to content

Commit e494927

Browse files
committed
Remove deprecated APIs
Closes gh-967
1 parent e883bb6 commit e494927

File tree

1 file changed

+0
-38
lines changed
  • spring-restdocs-core/src/main/java/org/springframework/restdocs/operation/preprocess

1 file changed

+0
-38
lines changed

spring-restdocs-core/src/main/java/org/springframework/restdocs/operation/preprocess/Preprocessors.java

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -68,44 +68,6 @@ public static OperationPreprocessor prettyPrint() {
6868
return new ContentModifyingOperationPreprocessor(new PrettyPrintingContentModifier());
6969
}
7070

71-
/**
72-
* Returns an {@code OperationPreprocessor} that will remove any header from the
73-
* request or response with a name that is equal to one of the given
74-
* {@code headersToRemove}.
75-
* @param headerNames the header names
76-
* @return the preprocessor
77-
* @deprecated since 3.0.0 in favor of {@link #modifyHeaders()} and
78-
* {@link HeadersModifyingOperationPreprocessor#remove(String)}
79-
* @see String#equals(Object)
80-
*/
81-
@Deprecated
82-
public static OperationPreprocessor removeHeaders(String... headerNames) {
83-
HeadersModifyingOperationPreprocessor preprocessor = new HeadersModifyingOperationPreprocessor();
84-
for (String headerName : headerNames) {
85-
preprocessor.remove(headerName);
86-
}
87-
return preprocessor;
88-
}
89-
90-
/**
91-
* Returns an {@code OperationPreprocessor} that will remove any headers from the
92-
* request or response with a name that matches one of the given
93-
* {@code headerNamePatterns} regular expressions.
94-
* @param headerNamePatterns the header name patterns
95-
* @return the preprocessor
96-
* @deprecated since 3.0.0 in favor of {@link #modifyHeaders()} and
97-
* {@link HeadersModifyingOperationPreprocessor#removeMatching(String)}
98-
* @see java.util.regex.Matcher#matches()
99-
*/
100-
@Deprecated
101-
public static OperationPreprocessor removeMatchingHeaders(String... headerNamePatterns) {
102-
HeadersModifyingOperationPreprocessor preprocessor = new HeadersModifyingOperationPreprocessor();
103-
for (String headerNamePattern : headerNamePatterns) {
104-
preprocessor.removeMatching(headerNamePattern);
105-
}
106-
return preprocessor;
107-
}
108-
10971
/**
11072
* Returns an {@code OperationPreprocessor} that will mask the href of hypermedia
11173
* links in the request or response.

0 commit comments

Comments
 (0)