From b8385afb2f8e5d3413fc510aeff0bacc3653e37d Mon Sep 17 00:00:00 2001 From: Miles Gould Date: Mon, 19 Dec 2016 20:14:05 +0000 Subject: [PATCH] Remove apparently-unused Geocodable.geocode method We have unit tests for geocoding, but it's not being covered, so I assume it's being shadowed by a method installed directly from Geocoder. --- lib/geocodable.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/geocodable.rb b/lib/geocodable.rb index 68b137acf..3d736bc20 100644 --- a/lib/geocodable.rb +++ b/lib/geocodable.rb @@ -5,13 +5,6 @@ module Geocodable private - def geocode - unless self.location.blank? - self.latitude, self.longitude = - Geocoder.coordinates(location, params: { limit: 1 }) - end - end - def empty_unwanted_geocodes if self.location.blank? self.latitude = nil