diff --git a/googledrive/src/main/java/ch/cyberduck/core/googledrive/DriveSession.java b/googledrive/src/main/java/ch/cyberduck/core/googledrive/DriveSession.java index 4cd1175eb99..82a55224ea1 100644 --- a/googledrive/src/main/java/ch/cyberduck/core/googledrive/DriveSession.java +++ b/googledrive/src/main/java/ch/cyberduck/core/googledrive/DriveSession.java @@ -37,7 +37,6 @@ import ch.cyberduck.core.oauth.OAuth2ErrorResponseInterceptor; import ch.cyberduck.core.oauth.OAuth2RequestInterceptor; import ch.cyberduck.core.preferences.HostPreferences; -import ch.cyberduck.core.proxy.ProxyFactory; import ch.cyberduck.core.proxy.ProxyFinder; import ch.cyberduck.core.ssl.X509KeyManager; import ch.cyberduck.core.ssl.X509TrustManager; @@ -50,11 +49,8 @@ import java.io.IOException; -import com.google.api.client.http.HttpBackOffUnsuccessfulResponseHandler; -import com.google.api.client.http.HttpRequest; import com.google.api.client.http.apache.v2.ApacheHttpTransport; import com.google.api.client.json.gson.GsonFactory; -import com.google.api.client.util.ExponentialBackOff; import com.google.api.services.drive.Drive; import com.google.api.services.drive.model.About; @@ -90,22 +86,6 @@ protected Drive connect(final ProxyFinder proxy, final HostKeyCallback callback, .build(); } - /** - * Retry with backoff for any server error reply - */ - private static final class GoogleDriveHttpRequestInitializer extends UserAgentHttpRequestInitializer { - public GoogleDriveHttpRequestInitializer(final UseragentProvider provider) { - super(provider); - } - - @Override - public void initialize(final HttpRequest request) { - super.initialize(request); - request.setUnsuccessfulResponseHandler(new HttpBackOffUnsuccessfulResponseHandler(new ExponentialBackOff()) - .setBackOffRequired(HttpBackOffUnsuccessfulResponseHandler.BackOffRequired.ON_SERVER_ERROR)); - } - } - @Override public void login(final LoginCallback prompt, final CancelCallback cancel) throws BackgroundException { final Credentials credentials = authorizationService.validate();