Commit 03974fd0 authored by Leonardo Aramaki's avatar Leonardo Aramaki

Remove forgotten unused method

parent df8e10b2
......@@ -123,20 +123,6 @@ public class MethodCallHelper {
});
}
private Task<Exception> extractError(Exception exception) throws JSONException {
String errMessageJson = exception.getMessage();
if (TextUtils.isEmpty(errMessageJson)) {
return Task.forError(exception);
}
String errType = new JSONObject(errMessageJson).optString("error");
String errMessage = new JSONObject(errMessageJson).getString("message");
if (TwoStepAuthException.TYPE.equals(errType)) {
return Task.forError(new TwoStepAuthException(errMessage));
}
return Task.forError(new Exception(errMessage));
}
protected final Task<String> call(String methodName, long timeout) {
return injectErrorHandler(executeMethodCall(methodName, null, timeout));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment