removed code for debugging

This commit is contained in:
Mariotaku Lee 2015-06-29 03:37:19 +08:00
parent be7bf1e948
commit b0a60d9d9a
1 changed files with 1 additions and 8 deletions

View File

@ -23,7 +23,6 @@ import android.content.Context;
import android.os.Looper; import android.os.Looper;
import android.support.annotation.NonNull; import android.support.annotation.NonNull;
import android.support.annotation.Nullable; import android.support.annotation.Nullable;
import android.util.Log;
import android.util.Pair; import android.util.Pair;
import com.squareup.okhttp.Call; 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.RestHttpResponse;
import org.mariotaku.restfu.http.RestQueuedRequest; import org.mariotaku.restfu.http.RestQueuedRequest;
import org.mariotaku.restfu.http.mime.TypedData; import org.mariotaku.restfu.http.mime.TypedData;
import org.mariotaku.twidere.Constants;
import org.mariotaku.twidere.util.DebugModeUtils; import org.mariotaku.twidere.util.DebugModeUtils;
import java.io.IOException; import java.io.IOException;
@ -72,12 +70,7 @@ public class OkHttpRestClient implements RestHttpClient {
@Override @Override
public RestHttpResponse execute(RestHttpRequest restHttpRequest) throws IOException { public RestHttpResponse execute(RestHttpRequest restHttpRequest) throws IOException {
final Call call = newCall(restHttpRequest); final Call call = newCall(restHttpRequest);
try { return new OkRestHttpResponse(call.execute());
return new OkRestHttpResponse(call.execute());
} catch (IOException e) {
Log.w(Constants.LOGTAG, e);
throw e;
}
} }
private Call newCall(final RestHttpRequest restHttpRequest) { private Call newCall(final RestHttpRequest restHttpRequest) {