File tree Expand file tree Collapse file tree 2 files changed +0
-27
lines changed Expand file tree Collapse file tree 2 files changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -177,13 +177,6 @@ def self.wday_to_sym(wday)
177
177
end
178
178
end
179
179
180
- # Convert a symbol to an ical day (SU, MO)
181
- def self . week_start ( sym )
182
- raise ArgumentError , "Invalid day: #{ str } " unless DAYS . keys . include? ( sym )
183
- day = sym . to_s . upcase [ 0 ..1 ]
184
- day
185
- end
186
-
187
180
# Convert weekday from base sunday to the schedule's week start.
188
181
def self . normalize_wday ( wday , week_start )
189
182
( wday - sym_to_wday ( week_start ) ) % 7
@@ -260,10 +253,6 @@ def self.dst_change(time)
260
253
end
261
254
end
262
255
263
- def self . same_clock? ( t1 , t2 )
264
- CLOCK_VALUES . all? { |i | t1 . send ( i ) == t2 . send ( i ) }
265
- end
266
-
267
256
# Handle discrepancies between various time types
268
257
# - Time has subsec
269
258
# - DateTime does not
@@ -350,10 +339,6 @@ def clear_month
350
339
@time += ONE_DAY
351
340
end
352
341
353
- def clear_year
354
- @time
355
- end
356
-
357
342
end
358
343
359
344
end
Original file line number Diff line number Diff line change @@ -51,10 +51,6 @@ def other_interval_validations
51
51
Array ( @validations [ base_interval_validation . type ] )
52
52
end
53
53
54
- def base_interval_type
55
- base_interval_validation . type
56
- end
57
-
58
54
# Compute the next time after (or including) the specified time in respect
59
55
# to the given start time
60
56
def next_time ( time , start_time , closing_time )
@@ -74,14 +70,6 @@ def realign(opening_time, start_time)
74
70
start_time
75
71
end
76
72
77
- def skipped_for_dst
78
- @uses -= 1 if @uses > 0
79
- end
80
-
81
- def dst_adjust?
82
- @validations [ :interval ] . any? ( &:dst_adjust? )
83
- end
84
-
85
73
def full_required?
86
74
!occurrence_count . nil?
87
75
end
You can’t perform that action at this time.
0 commit comments