Commit 6f0da4aa authored by Michael Kozono's avatar Michael Kozono

Merge branch 'find-by-template-dead-code' into 'master'

Remove dead code: Service#find_by_template

See merge request gitlab-org/gitlab!26604
parents 3e43f882 fc1a093d
......@@ -319,10 +319,6 @@ class Service < ApplicationRecord
nil
end
def self.find_by_template
find_by(template: true)
end
# override if needed
def supports_data_fields?
false
......
......@@ -2772,8 +2772,6 @@ Service
should return false by default
#deprecation_message
should be empty by default
.find_by_template
returns service template
#api_field_names
filters out sensitive fields
......
......@@ -406,14 +406,6 @@ describe Service do
end
end
describe '.find_by_template' do
let!(:service) { create(:service, template: true) }
it 'returns service template' do
expect(described_class.find_by_template).to eq(service)
end
end
describe '#api_field_names' do
let(:fake_service) do
Class.new(Service) do
......
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