Remove obsolete code
See gh-34331
This commit is contained in:
@@ -16,10 +16,8 @@
|
|||||||
|
|
||||||
package org.springframework.web.socket.client.standard;
|
package org.springframework.web.socket.client.standard;
|
||||||
|
|
||||||
import java.net.InetAddress;
|
|
||||||
import java.net.InetSocketAddress;
|
import java.net.InetSocketAddress;
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.net.UnknownHostException;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -186,15 +184,6 @@ public class StandardWebSocketClient extends AbstractWebSocketClient {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static InetAddress getLocalHost() {
|
|
||||||
try {
|
|
||||||
return InetAddress.getLocalHost();
|
|
||||||
}
|
|
||||||
catch (UnknownHostException ex) {
|
|
||||||
return InetAddress.getLoopbackAddress();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static int getPort(URI uri) {
|
private static int getPort(URI uri) {
|
||||||
if (uri.getPort() == -1) {
|
if (uri.getPort() == -1) {
|
||||||
String scheme = uri.getScheme().toLowerCase(Locale.ROOT);
|
String scheme = uri.getScheme().toLowerCase(Locale.ROOT);
|
||||||
|
|||||||
Reference in New Issue
Block a user