Commit 9bcf3707 authored by Nick Nguyen's avatar Nick Nguyen Committed by Michael Kozono

Remove unused GeoGitAccess method

parent 726c581a
......@@ -8,8 +8,6 @@ module EE
include GrapePathHelpers::NamedRouteMatcher
extend ::Gitlab::Utils::Override
GEO_SERVER_DOCS_URL = 'https://docs.gitlab.com/ee/administration/geo/replication/using_a_geo_server.html'
private
def geo_custom_action
......@@ -48,25 +46,6 @@ module EE
messages + ['', lag_message]
end
def push_to_read_only_message
message = super
if ::Gitlab::Geo.secondary_with_primary?
message = "#{message}\nPlease use the primary node URL instead: #{geo_primary_url_to_repo}.\nFor more information: #{GEO_SERVER_DOCS_URL}"
end
message
end
def geo_primary_url_to_repo
case protocol
when 'ssh'
geo_primary_ssh_url_to_repo(container)
else
geo_primary_http_url_to_repo(container)
end
end
def primary_http_repo_url
geo_primary_http_url_to_repo(container)
end
......
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