diff --git a/app/models/project.rb b/app/models/project.rb index 11ca09668e0098cdaa7666a758fc05daee3e4940..ec40def6fb1307ab9fc2f8df09a8ecbd8f4c1ea6 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -609,10 +609,6 @@ class Project < ActiveRecord::Base Gitlab::Routing.url_helpers.namespace_project_url(self.namespace, self) end - def web_url_without_protocol - web_url.split('://')[1] - end - def new_issue_address(author) return unless Gitlab::IncomingEmail.supports_issue_creation? && author diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index fb225eb76259b64b5b63412ff2ab6f04e49f2e80..3ec7bb466862e1f39bf50cde7fe604f3fa7e88ea 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -362,14 +362,6 @@ describe Project, models: true do end end - describe "#web_url_without_protocol" do - let(:project) { create(:empty_project, path: "somewhere") } - - it 'returns the web URL without the protocol for this repo' do - expect(project.web_url_without_protocol).to eq("#{Gitlab.config.gitlab.url.split('://')[1]}/#{project.namespace.path}/somewhere") - end - end - describe "#new_issue_address" do let(:project) { create(:empty_project, path: "somewhere") } let(:user) { create(:user) }