Skip to content

Commit

Permalink
refactor: remove commented-out code in eventtime.go
Browse files Browse the repository at this point in the history
  • Loading branch information
revelaction committed Oct 27, 2024
1 parent d7318b1 commit b222a85
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions ical/eventtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,21 +149,6 @@ func (et *EventTime) nextTime(now time.Time) (time.Time, error) {
return time.Time{}, err
}

//if s != nil && s.GetRRule().Options.Freq == rrule.DAILY {
// slog.Info("8888888888888888888888", "Loc", s.GetRRule().Options.Interval)
// preparse or New
// parse method,
// eventtime receives property interval
// rruleInterval method in days
// switch with week and day, if not 0
// parse.go check rruleInterval is not 0 and comments > 1
// choose a arbitrary day in the past, calculatehow many run till now. modulo num comments.
// day till now, divided by rruleInterval, the modulo
// in parse.go func receives rruleInterval,numcomments provides int
// pickModuloProp(rruleInterval, numCommetn or numImages)
// pickRandomProp()
//}

// If it also has RDATE this also works properly
if et.hasRRule() {
// time can be Zero
Expand Down

0 comments on commit b222a85

Please sign in to comment.