Remove @OptIn annotations that are now unnecessary
This commit is contained in:
parent
4c67bbd156
commit
e24d51a437
4 changed files with 0 additions and 6 deletions
|
@ -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) {
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue