Remove unused method

This commit is contained in:
Eugene Burmakin 2025-07-22 22:44:41 +02:00
parent 0c904a6b84
commit 9803ccc6a8
2 changed files with 1 additions and 7 deletions

View file

@ -39,11 +39,4 @@ class Stat < ApplicationRecord
def calculate_daily_distances(monthly_points)
Stats::DailyDistanceQuery.new(monthly_points, timespan).call
end
def filter_points_for_day(points, day)
beginning_of_day = day.beginning_of_day.to_i
end_of_day = day.end_of_day.to_i
points.select { |p| p.timestamp.between?(beginning_of_day, end_of_day) }
end
end

View file

@ -65,6 +65,7 @@ class Stats::CalculateMonth
.where(timestamp: start_timestamp..end_timestamp)
.select(:city, :country)
.distinct
CountriesAndCities.new(toponym_points).call
end