Remove @OptIn annotations that are now unnecessary

This commit is contained in:
cketti 2022-03-03 16:55:36 +01:00
parent 4c67bbd156
commit e24d51a437
4 changed files with 0 additions and 6 deletions

View file

@ -17,7 +17,6 @@ internal data class NotificationData(
val isSingleMessageNotification: Boolean
get() = activeNotifications.size == 1
@OptIn(ExperimentalStdlibApi::class)
val messageReferences: List<MessageReference>
get() {
return buildList(capacity = newMessagesCount) {

View file

@ -41,7 +41,6 @@ internal class SingleMessageNotificationDataCreator {
)
}
@OptIn(ExperimentalStdlibApi::class)
private fun createSingleNotificationActions(): List<NotificationAction> {
return buildList {
add(NotificationAction.Reply)
@ -53,7 +52,6 @@ internal class SingleMessageNotificationDataCreator {
}
}
@OptIn(ExperimentalStdlibApi::class)
private fun createSingleNotificationWearActions(account: Account): List<WearNotificationAction> {
return buildList {
add(WearNotificationAction.Reply)

View file

@ -43,7 +43,6 @@ internal class SummaryNotificationDataCreator(
)
}
@OptIn(ExperimentalStdlibApi::class)
private fun createSummaryNotificationActions(): List<SummaryNotificationAction> {
return buildList {
add(SummaryNotificationAction.MarkAsRead)
@ -54,7 +53,6 @@ internal class SummaryNotificationDataCreator(
}
}
@OptIn(ExperimentalStdlibApi::class)
private fun createSummaryWearNotificationActions(account: Account): List<SummaryWearNotificationAction> {
return buildList {
add(SummaryWearNotificationAction.MarkAsRead)

View file

@ -266,7 +266,6 @@ class SummaryNotificationDataCreatorTest {
return NotificationData(account, activeNotifications, inactiveNotifications = emptyList())
}
@OptIn(ExperimentalStdlibApi::class)
private fun createNotificationDataWithMultipleMessages(times: Int = 2): NotificationData {
val contentList = buildList {
repeat(times) {