summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-01-03 09:17:49 -0500
committerRobert Speicher <rspeicher@gmail.com>2017-01-03 09:17:49 -0500
commit602ea41d4b7af8962523a8da94e3fe820eb8dbf5 (patch)
tree73e4c1809e28834095a0e39da56866369c904df3
parent10960d6e811dd1ac20b5019648d955fec97ee2e6 (diff)
downloadgitlab-ce-rs-remove-unused-method.tar.gz
Remove unused `Project#web_url_without_protocol` methodrs-remove-unused-method
-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 e0ffa7e7af7..663a0aef75b 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) }