From 9cc9632b6d9c5fd39fcecae70628abece1fa74df Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Mon, 4 Nov 2024 11:58:15 +0100 Subject: [PATCH] Remove unused parser from imports create service --- app/services/google_maps/records_parser.rb | 2 +- app/services/imports/create.rb | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/services/google_maps/records_parser.rb b/app/services/google_maps/records_parser.rb index 401d2ac6..04ee4621 100644 --- a/app/services/google_maps/records_parser.rb +++ b/app/services/google_maps/records_parser.rb @@ -35,7 +35,7 @@ class GoogleMaps::RecordsParser { latitude: json['latitudeE7'].to_f / 10**7, longitude: json['longitudeE7'].to_f / 10**7, - timestamp: Timestamps::parse_timestamp(json['timestamp'] || json['timestampMs']), + timestamp: Timestamps.parse_timestamp(json['timestamp'] || json['timestampMs']), altitude: json['altitude'], velocity: json['velocity'], raw_data: json diff --git a/app/services/imports/create.rb b/app/services/imports/create.rb index c068b324..4ce3e7c2 100644 --- a/app/services/imports/create.rb +++ b/app/services/imports/create.rb @@ -25,7 +25,6 @@ class Imports::Create # Bad classes naming by the way, they are not parsers, they are point creators case source when 'google_semantic_history' then GoogleMaps::SemanticHistoryParser - when 'google_records' then GoogleMaps::RecordsParser when 'google_phone_takeout' then GoogleMaps::PhoneTakeoutParser when 'owntracks' then OwnTracks::ExportParser when 'gpx' then Gpx::TrackParser