Skip to content

Commit 4695bf3

Browse files
committed
Remove old unused methods
1 parent 89ba292 commit 4695bf3

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

lib/ice_cube/time_util.rb

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,6 @@ def self.wday_to_sym(wday)
177177
end
178178
end
179179

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-
187180
# Convert weekday from base sunday to the schedule's week start.
188181
def self.normalize_wday(wday, week_start)
189182
(wday - sym_to_wday(week_start)) % 7
@@ -260,10 +253,6 @@ def self.dst_change(time)
260253
end
261254
end
262255

263-
def self.same_clock?(t1, t2)
264-
CLOCK_VALUES.all? { |i| t1.send(i) == t2.send(i) }
265-
end
266-
267256
# Handle discrepancies between various time types
268257
# - Time has subsec
269258
# - DateTime does not
@@ -350,10 +339,6 @@ def clear_month
350339
@time += ONE_DAY
351340
end
352341

353-
def clear_year
354-
@time
355-
end
356-
357342
end
358343

359344
end

lib/ice_cube/validated_rule.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ def other_interval_validations
5151
Array(@validations[base_interval_validation.type])
5252
end
5353

54-
def base_interval_type
55-
base_interval_validation.type
56-
end
57-
5854
# Compute the next time after (or including) the specified time in respect
5955
# to the given start time
6056
def next_time(time, start_time, closing_time)
@@ -74,14 +70,6 @@ def realign(opening_time, start_time)
7470
start_time
7571
end
7672

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-
8573
def full_required?
8674
!occurrence_count.nil?
8775
end

0 commit comments

Comments
 (0)