From 6ff6c710602b236c5c15184c0bdad6225f01cdc8 Mon Sep 17 00:00:00 2001 From: Nicolas Florentin Date: Mon, 2 Dec 2019 12:32:52 +0100 Subject: [PATCH] rm dead code Slot#can_be_modified? --- app/models/slot.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/models/slot.rb b/app/models/slot.rb index cddb98dac..58b8269a3 100644 --- a/app/models/slot.rb +++ b/app/models/slot.rb @@ -51,12 +51,6 @@ class Slot < ActiveRecord::Base attached_object: self end - def can_be_modified? - return false if (start_at - Time.now) / 1.day < 1 - - true - end - def dates_were_modified? start_at_changed? or end_at_changed? end