From b0a60d9d9ad43f071543b2b5053aef4bb981f930 Mon Sep 17 00:00:00 2001 From: Mariotaku Lee Date: Mon, 29 Jun 2015 03:37:19 +0800 Subject: [PATCH] removed code for debugging --- .../org/mariotaku/twidere/util/net/OkHttpRestClient.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/twidere/src/main/java/org/mariotaku/twidere/util/net/OkHttpRestClient.java b/twidere/src/main/java/org/mariotaku/twidere/util/net/OkHttpRestClient.java index 561bb605b..4678b4271 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/util/net/OkHttpRestClient.java +++ b/twidere/src/main/java/org/mariotaku/twidere/util/net/OkHttpRestClient.java @@ -23,7 +23,6 @@ import android.content.Context; import android.os.Looper; import android.support.annotation.NonNull; import android.support.annotation.Nullable; -import android.util.Log; import android.util.Pair; import com.squareup.okhttp.Call; @@ -44,7 +43,6 @@ import org.mariotaku.restfu.http.RestHttpRequest; import org.mariotaku.restfu.http.RestHttpResponse; import org.mariotaku.restfu.http.RestQueuedRequest; import org.mariotaku.restfu.http.mime.TypedData; -import org.mariotaku.twidere.Constants; import org.mariotaku.twidere.util.DebugModeUtils; import java.io.IOException; @@ -72,12 +70,7 @@ public class OkHttpRestClient implements RestHttpClient { @Override public RestHttpResponse execute(RestHttpRequest restHttpRequest) throws IOException { final Call call = newCall(restHttpRequest); - try { - return new OkRestHttpResponse(call.execute()); - } catch (IOException e) { - Log.w(Constants.LOGTAG, e); - throw e; - } + return new OkRestHttpResponse(call.execute()); } private Call newCall(final RestHttpRequest restHttpRequest) {