Skip to content

Commit 071adfc

Browse files
committed
cleanup
1 parent 14e2a5f commit 071adfc

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

java-bigquery/google-cloud-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcOAuthUtility.java

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -125,18 +125,6 @@ static Map<String, String> parseOAuthProperties(DataSource ds, String callerClas
125125
}
126126
oauthProperties.put(BigQueryJdbcUrlUtility.OAUTH_TYPE_PROPERTY_NAME, String.valueOf(authType));
127127

128-
Integer reqGoogleDriveScope = ds.getRequestGoogleDriveScope();
129-
if (reqGoogleDriveScope != null) {
130-
Boolean reqGoogleDriveScopeBool =
131-
BigQueryJdbcUrlUtility.convertIntToBoolean(
132-
String.valueOf(reqGoogleDriveScope),
133-
BigQueryJdbcUrlUtility.REQUEST_GOOGLE_DRIVE_SCOPE_PROPERTY_NAME);
134-
oauthProperties.put(
135-
BigQueryJdbcUrlUtility.REQUEST_GOOGLE_DRIVE_SCOPE_PROPERTY_NAME,
136-
String.valueOf(reqGoogleDriveScopeBool));
137-
LOG.fine("RequestGoogleDriveScope parsed.");
138-
}
139-
140128
switch (authType) {
141129
case GOOGLE_SERVICE_ACCOUNT:
142130
// For using a Google Service Account (OAuth Type 0)
@@ -432,13 +420,6 @@ static UserAuthorizer getUserAuthorizer(
432420
}
433421
List<String> scopes = new java.util.ArrayList<>(DEFAULT_BIGQUERY_SCOPES);
434422

435-
if ("true"
436-
.equals(
437-
authProperties.get(BigQueryJdbcUrlUtility.REQUEST_GOOGLE_DRIVE_SCOPE_PROPERTY_NAME))) {
438-
scopes.add(DRIVE_READONLY_SCOPE);
439-
LOG.fine("Added Google Drive read-only scope to User Account builder.");
440-
}
441-
442423
userAuthorizerBuilder.setScopes(scopes);
443424

444425
return userAuthorizerBuilder.build();

0 commit comments

Comments
 (0)