mirror of
https://github.com/square/okhttp.git
synced 2026-01-17 08:42:25 +03:00
Merge pull request #2091 from square/jw/deprecated-okhttp
Remove some older, deprecated APIs.
This commit is contained in:
@@ -90,27 +90,6 @@ public final class Address {
|
||||
return url;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the hostname of the origin server.
|
||||
*
|
||||
* @deprecated prefer {@code address.url().host()}.
|
||||
*/
|
||||
@Deprecated
|
||||
public String getUriHost() {
|
||||
return url.host();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the port of the origin server; typically 80 or 443. Unlike
|
||||
* may {@code getPort()} accessors, this method never returns -1.
|
||||
*
|
||||
* @deprecated prefer {@code address.url().port()}.
|
||||
*/
|
||||
@Deprecated
|
||||
public int getUriPort() {
|
||||
return url.port();
|
||||
}
|
||||
|
||||
/** Returns the service that will be used to resolve IP addresses for hostnames. */
|
||||
public Dns getDns() {
|
||||
return dns;
|
||||
|
||||
@@ -147,12 +147,6 @@ public final class ConnectionPool {
|
||||
return connections.size();
|
||||
}
|
||||
|
||||
/** @deprecated Use {@link #getMultiplexedConnectionCount()}. */
|
||||
@Deprecated
|
||||
public synchronized int getSpdyConnectionCount() {
|
||||
return getMultiplexedConnectionCount();
|
||||
}
|
||||
|
||||
/** Returns total number of multiplexed connections in the pool. */
|
||||
public synchronized int getMultiplexedConnectionCount() {
|
||||
int total = 0;
|
||||
|
||||
Reference in New Issue
Block a user