Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[#56011] removed unused method

Eric Schuberte73f8c0b7e6c
diff --git a/modules/storages/app/common/storages/peripherals/storage_interaction/authentication_strategies/oauth_user_token.rb b/modules/storages/app/common/storages/peripherals/storage_interaction/authentication_strategies/oauth_user_token.rb
index 31a0cb96988..8f423f342ba 100644
--- a/modules/storages/app/common/storages/peripherals/storage_interaction/authentication_strategies/oauth_user_token.rb
+++ b/modules/storages/app/common/storages/peripherals/storage_interaction/authentication_strategies/oauth_user_token.rb
@@ -124,11 +124,6 @@ module Storages
token.update(access_token:, refresh_token:)
end
- def log_and_destroy_token(token, log_message)
- Rails.logger.error(log_message)
- token.destroy
- end
-
def handle_http_error_on_refresh(token, exception)
log_message = "Error while refreshing OAuth token."
data = Failures::ErrorData.call(response: exception.response, source: self.class)