From 55fd362b3d7fbc8d3806c5e4bafaab99bb14c703 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Fri, 19 Nov 2021 09:14:18 +0000 Subject: [PATCH] removing unused default constructor param and making queue a data class since it's only manipulating its own internal data --- .../app/features/notifications/NotificationEventQueue.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/notifications/NotificationEventQueue.kt b/vector/src/main/java/im/vector/app/features/notifications/NotificationEventQueue.kt index 2dc86f0aa0..04506b218b 100644 --- a/vector/src/main/java/im/vector/app/features/notifications/NotificationEventQueue.kt +++ b/vector/src/main/java/im/vector/app/features/notifications/NotificationEventQueue.kt @@ -18,8 +18,8 @@ package im.vector.app.features.notifications import timber.log.Timber -class NotificationEventQueue( - private val queue: MutableList = mutableListOf(), +data class NotificationEventQueue( + private val queue: MutableList, /** * An in memory FIFO cache of the seen events.