From df41f9b5d27c19d29cd086d6334cdeba739edf3d Mon Sep 17 00:00:00 2001 From: Jake Wharton Date: Sun, 13 Dec 2015 21:33:47 -0500 Subject: [PATCH] Remove some older, deprecated APIs. --- .../java/com/squareup/okhttp/Address.java | 21 ------------------- .../com/squareup/okhttp/ConnectionPool.java | 6 ------ 2 files changed, 27 deletions(-) diff --git a/okhttp/src/main/java/com/squareup/okhttp/Address.java b/okhttp/src/main/java/com/squareup/okhttp/Address.java index 9efdf2805..705f93157 100644 --- a/okhttp/src/main/java/com/squareup/okhttp/Address.java +++ b/okhttp/src/main/java/com/squareup/okhttp/Address.java @@ -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; diff --git a/okhttp/src/main/java/com/squareup/okhttp/ConnectionPool.java b/okhttp/src/main/java/com/squareup/okhttp/ConnectionPool.java index 6f8efc4c3..a8a338026 100644 --- a/okhttp/src/main/java/com/squareup/okhttp/ConnectionPool.java +++ b/okhttp/src/main/java/com/squareup/okhttp/ConnectionPool.java @@ -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;