summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/models/project.rb4
-rw-r--r--spec/models/project_spec.rb8
2 files changed, 0 insertions, 12 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 11ca09668e0..ec40def6fb1 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 fb225eb7625..3ec7bb46686 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) }