From eb264c188a3b1193825401f8b5c18fe837f8b4e3 Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Wed, 7 Dec 2022 10:40:19 +0000 Subject: [PATCH] refactor: remove redundant function --- app/models/location.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/models/location.rb b/app/models/location.rb index 0bad9441b..2008c5c64 100644 --- a/app/models/location.rb +++ b/app/models/location.rb @@ -433,10 +433,6 @@ class Location < ApplicationRecord self.confirmed = [postcode, location_admin_district, location_code, units, type_of_unit, mobility_type].all?(&:present?) end - def confirmed! - update!(confirmed: true) - end - private PIO = PostcodeService.new