removing some no longer needed code

This commit is contained in:
tibbi 2018-11-15 12:05:18 +01:00
parent 76c92eea78
commit e6ab8282c9
1 changed files with 1 additions and 7 deletions

View File

@ -268,7 +268,7 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
val reminder2Minutes = cursor.getIntValue(COL_REMINDER_MINUTES_2) val reminder2Minutes = cursor.getIntValue(COL_REMINDER_MINUTES_2)
val reminder3Minutes = cursor.getIntValue(COL_REMINDER_MINUTES_3) val reminder3Minutes = cursor.getIntValue(COL_REMINDER_MINUTES_3)
val repeatInterval = 0 val repeatInterval = 0
var repeatRule = 0 val repeatRule = 0
val repeatLimit = 0L val repeatLimit = 0L
val title = cursor.getStringValue(COL_TITLE) val title = cursor.getStringValue(COL_TITLE)
val location = cursor.getStringValue(COL_LOCATION) val location = cursor.getStringValue(COL_LOCATION)
@ -279,14 +279,8 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
val lastUpdated = cursor.getLongValue(COL_LAST_UPDATED) val lastUpdated = cursor.getLongValue(COL_LAST_UPDATED)
val source = cursor.getStringValue(COL_EVENT_SOURCE) val source = cursor.getStringValue(COL_EVENT_SOURCE)
if (repeatInterval > 0 && repeatRule == 0 && (repeatInterval % MONTH == 0 || repeatInterval % YEAR == 0)) {
repeatRule = REPEAT_SAME_DAY
}
val event = Event(id, startTS, endTS, title, location, description, reminder1Minutes, reminder2Minutes, reminder3Minutes, val event = Event(id, startTS, endTS, title, location, description, reminder1Minutes, reminder2Minutes, reminder3Minutes,
repeatInterval, repeatRule, repeatLimit, importId, flags, eventType, 0, lastUpdated, source) repeatInterval, repeatRule, repeatLimit, importId, flags, eventType, 0, lastUpdated, source)
event.updateIsPastEvent()
event.color = eventTypeColors.get(eventType)!!
events.add(event) events.add(event)
} while (cursor.moveToNext()) } while (cursor.moveToNext())