Skip to content

Commit c45f898

Browse files
committed
Removed deprecated methods, in new version devs are forced to use correct new calls
1 parent e1b7047 commit c45f898

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
- Added BlackholeHttpResponseHandler implementation, which discards all response contents and silents all various log messages (see #416)
1414
- Added LogInterface, it's default implementation and interface option to disable/enable logging library-wide and set logging verbosity
1515
- Added option to TAG RequestHandle and cancel all requests matching specified TAG through `AsyncHttpClient.cancelRequestsByTAG(Object TAG)`
16+
- Removed deprecated `getTimeout()` replaced by `getConnectTimeout()` and `getResponseTimeout()` respectively
17+
- Removed deprecated `clearBasicAuth()` replaced by `clearCredentialsProvider()`
1618

1719
## 1.4.7 (released 9. 5. 2015)
1820

library/src/main/java/com/loopj/android/http/AsyncHttpClient.java

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -533,17 +533,6 @@ public void setMaxConnections(int maxConnections) {
533533
ConnManagerParams.setMaxConnectionsPerRoute(httpParams, new ConnPerRouteBean(this.maxConnections));
534534
}
535535

536-
/**
537-
* Returns current socket timeout limit (milliseconds). By default, this is
538-
* set to 10 seconds.
539-
*
540-
* @return Socket Timeout limit in milliseconds
541-
* @deprecated Use either {@link #getConnectTimeout()} or {@link #getResponseTimeout()}
542-
*/
543-
public int getTimeout() {
544-
return connectTimeout;
545-
}
546-
547536
/**
548537
* Set both the connection and socket timeouts. By default, both are set to
549538
* 10 seconds.
@@ -751,16 +740,6 @@ public void setAuthenticationPreemptive(boolean isPreemptive) {
751740
}
752741
}
753742

754-
/**
755-
* Removes previously set basic auth credentials
756-
*
757-
* @deprecated
758-
*/
759-
@Deprecated
760-
public void clearBasicAuth() {
761-
clearCredentialsProvider();
762-
}
763-
764743
/**
765744
* Removes previously set auth credentials
766745
*/

0 commit comments

Comments
 (0)