Skip to content

Commit

Permalink
Delete unused.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Nov 19, 2024
1 parent fae0b52 commit b103243
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;

Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit b103243

Please sign in to comment.