mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-20 20:59:00 +00:00
[#33] - Remove unused variables from handleError method
This commit is contained in:
parent
0d1072d6b4
commit
4df6a448dd
1 changed files with 2 additions and 7 deletions
|
|
@ -182,12 +182,7 @@ public class APIHelper implements ErrorHandler, Profiler {
|
|||
@Override
|
||||
public Throwable handleError(RetrofitError cause) {
|
||||
|
||||
retrofit.client.Response res = cause.getResponse();
|
||||
|
||||
if (res != null) {
|
||||
retrofit.mime.TypedInput body = res.getBody();
|
||||
}
|
||||
|
||||
//It also handles timeouts
|
||||
if (cause.getKind().equals(RetrofitError.Kind.NETWORK)) {
|
||||
final Activity activity = (Activity) this.mContext;
|
||||
activity.runOnUiThread(new Runnable() {
|
||||
|
|
@ -227,7 +222,7 @@ public class APIHelper implements ErrorHandler, Profiler {
|
|||
private class ATaskGetUser extends AsyncTask<Void, Void, Void> {
|
||||
private OnHabitsAPIResult callback;
|
||||
private HostConfig config;
|
||||
|
||||
|
||||
public ATaskGetUser(OnHabitsAPIResult callback, HostConfig config) {
|
||||
this.callback = callback;
|
||||
this.config=config;
|
||||
|
|
|
|||
Loading…
Reference in a new issue