mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-31 14:28:49 +01:00
Remove unused method
This commit is contained in:
parent
56f366b432
commit
6af7fe0ab6
1 changed files with 0 additions and 10 deletions
|
|
@ -1351,16 +1351,6 @@ class TodosController < ApplicationController
|
|||
end
|
||||
end
|
||||
|
||||
def determine_non_uniq_todo
|
||||
# for calendar view. TODO: unused
|
||||
all_list_uniq_ids = (@due_today.map(&:id) + @due_this_week.map(&:id) +
|
||||
@due_next_week.map(&:id) + @due_this_month.map(&:id) + @due_after_this_month.map(&:id)).uniq
|
||||
all_list_count = @due_today.count + @due_this_week.count +
|
||||
@due_next_week.count + @due_this_month.count + @due_after_this_month.count
|
||||
|
||||
return !( all_list_uniq_ids.length == all_list_count )
|
||||
end
|
||||
|
||||
# all completed todos [today@00:00, today@now]
|
||||
def get_done_today(completed_todos, includes = {:include => Todo::DEFAULT_INCLUDES})
|
||||
start_of_this_day = Time.zone.now.beginning_of_day
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue