Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bitfireAT/ical4android.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunik Kupfer <kupfer@bitfire.at>2022-07-13 12:12:26 +0300
committerSunik Kupfer <kupfer@bitfire.at>2022-07-13 12:12:26 +0300
commitaf48e4b318c22e4806f0d7d7ab12b51358651ef0 (patch)
treeaa0cdfb94fb3583206c49bee5638ccf1852517b9
parentc58a0abc4a66de00a67d8a860c493b01dfd27a27 (diff)
drop ICalPreprocessor validation rule
-rw-r--r--src/main/java/at/bitfire/ical4android/validation/ICalPreprocessor.kt3
-rw-r--r--src/main/java/at/bitfire/ical4android/validation/RruleUntilAfterStartRule.kt22
2 files changed, 0 insertions, 25 deletions
diff --git a/src/main/java/at/bitfire/ical4android/validation/ICalPreprocessor.kt b/src/main/java/at/bitfire/ical4android/validation/ICalPreprocessor.kt
index c58d1b7..f76ff12 100644
--- a/src/main/java/at/bitfire/ical4android/validation/ICalPreprocessor.kt
+++ b/src/main/java/at/bitfire/ical4android/validation/ICalPreprocessor.kt
@@ -24,7 +24,6 @@ import java.util.logging.Level
* - [CreatedPropertyRule] to make sure CREATED is UTC
* - [DatePropertyRule], [DateListPropertyRule] to rename Outlook-specific TZID parameters
* (like "W. Europe Standard Time" to an Android-friendly name like "Europe/Vienna")
- * - [RruleUntilAfterStartRule] to remove RRULEs with UNTIL before DTSTART
*
*/
object ICalPreprocessor {
@@ -36,8 +35,6 @@ object ICalPreprocessor {
DatePropertyRule(), // These two rules also replace VTIMEZONEs of the iCalendar ...
DateListPropertyRule(), // ... by the ical4j VTIMEZONE with the same TZID!
-
- RruleUntilAfterStartRule() // remove RRULEs with UNTIL before DTSTART
)
diff --git a/src/main/java/at/bitfire/ical4android/validation/RruleUntilAfterStartRule.kt b/src/main/java/at/bitfire/ical4android/validation/RruleUntilAfterStartRule.kt
deleted file mode 100644
index 44d264f..0000000
--- a/src/main/java/at/bitfire/ical4android/validation/RruleUntilAfterStartRule.kt
+++ /dev/null
@@ -1,22 +0,0 @@
-/***************************************************************************************************
- * Copyright © All Contributors. See LICENSE and AUTHORS in the root directory for details.
- **************************************************************************************************/
-
-package at.bitfire.ical4android.validation
-
-import net.fortuna.ical4j.model.Property
-import net.fortuna.ical4j.model.component.VEvent
-import net.fortuna.ical4j.model.property.RRule
-import net.fortuna.ical4j.transform.rfc5545.Rfc5545ComponentRule
-
-class RruleUntilAfterStartRule: Rfc5545ComponentRule<VEvent> {
-
- override fun applyTo(event: VEvent) {
- val dtStart = event.startDate ?: return
- val rRules: MutableList<RRule> = event.getProperties(Property.RRULE)
- EventValidator.removeRRulesWithUntilBeforeDtStart(dtStart, rRules)
- }
-
- override fun getSupportedType() = VEvent::class.java
-
-} \ No newline at end of file