From b2e66aa90a370c973393088be1efeb00142812f7 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Fri, 25 Oct 2019 15:33:03 +0300 Subject: [PATCH] Remove unused code --- app/controllers/registrar/contacts_controller.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/controllers/registrar/contacts_controller.rb b/app/controllers/registrar/contacts_controller.rb index ec280a46c..49569d7a0 100644 --- a/app/controllers/registrar/contacts_controller.rb +++ b/app/controllers/registrar/contacts_controller.rb @@ -16,10 +16,6 @@ class Registrar search_params[:registrant_domains_id_not_null] = 1 end - if search_params.length == 1 && search_params[:name_matches].present? - @contacts = Contact.find_by(name: search_params[:name_matches]) - end - if params[:statuses_contains] contacts = current_registrar_user.registrar.contacts.includes(:registrar).where( "contacts.statuses @> ?::varchar[]", "{#{params[:statuses_contains].join(',')}}"