Skip to content

Commit dd971aa

Browse files
committed
GH-1294 Remove TARGET_PROTOCOL from FunctionMessageUtils
1 parent 2285436 commit dd971aa

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

spring-cloud-function-context/src/main/java/org/springframework/cloud/function/utils/FunctionMessageUtils.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ public static String getSourceType(String functionDefinition, Message<?> message
4040
return determineSourceFromHeaders(message.getHeaders());
4141
}
4242

43-
public static String getTargetType(String functionDefinition, Message<?> message) {
44-
return message.getHeaders().containsKey(MessageUtils.TARGET_PROTOCOL) ? (String) message.getHeaders().get(MessageUtils.TARGET_PROTOCOL) : "unknown";
45-
}
46-
4743
private static String determineSourceFromHeaders(MessageHeaders headers) {
4844
for (String key : headers.keySet()) {
4945
if (key.equals(MessageUtils.SOURCE_TYPE)) {

0 commit comments

Comments
 (0)