1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-17 08:42:25 +03:00

Remove some older, deprecated APIs.

This commit is contained in:
Jake Wharton
2015-12-13 21:33:47 -05:00
parent 090609d4dc
commit df41f9b5d2
2 changed files with 0 additions and 27 deletions

View File

@@ -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;

View File

@@ -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;