Skip to content

Commit 46fea2b

Browse files
committed
Removed deprecated setting "showNumberOfDaysToEvent"
1 parent 5b14284 commit 46fea2b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

app/src/main/kotlin/org/andstatus/todoagenda/prefs/InstanceSettings.kt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,6 @@ data class InstanceSettings(
363363
const val PREF_ENTRY_DATE_FORMAT = "entryDateFormat"
364364
val PREF_ENTRY_DATE_FORMAT_DEFAULT: DateFormatValue = DateFormatType.HIDDEN.defaultValue
365365

366-
@Deprecated("")
367-
private val PREF_SHOW_NUMBER_OF_DAYS_TO_EVENT = "showNumberOfDaysToEvent" // till v 4.0
368366
const val PREF_MULTILINE_TITLE = "multiline_title"
369367
const val PREF_MULTILINE_TITLE_DEFAULT = false
370368
const val PREF_MAXLINES_TITLE = "maxLinesTitle"
@@ -543,11 +541,6 @@ data class InstanceSettings(
543541
DateFormatValue.load(
544542
json.getString(PREF_ENTRY_DATE_FORMAT), PREF_ENTRY_DATE_FORMAT_DEFAULT
545543
)
546-
} else if (json.has(PREF_SHOW_NUMBER_OF_DAYS_TO_EVENT)) {
547-
(if (json.getBoolean(PREF_SHOW_NUMBER_OF_DAYS_TO_EVENT) &&
548-
eventEntryLayout == EventEntryLayout.ONE_LINE
549-
) DateFormatType.NUMBER_OF_DAYS else DateFormatType.HIDDEN)
550-
.defaultValue
551544
} else EMPTY.entryDateFormat,
552545
showEndTime = if (json.has(PREF_SHOW_END_TIME)) {
553546
json.getBoolean(PREF_SHOW_END_TIME)

0 commit comments

Comments
 (0)