Merge branch 'rs-remove-unused-method' into 'master'

Remove unused `Project#web_url_without_protocol` method

See merge request !8416
This commit is contained in:
Douwe Maan 2017-01-04 14:43:13 +00:00
commit 71a692c16d
2 changed files with 0 additions and 12 deletions

View File

@ -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

View File

@ -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) }