Remove dead code.
This commit is contained in:
parent
29367d094c
commit
764952468c
1 changed files with 0 additions and 15 deletions
|
|
@ -1,15 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright 2022-2024 New Vector Ltd.
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
||||||
* Please see LICENSE files in the repository root for full details.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package io.element.android.features.messages.impl.timeline.util
|
|
||||||
|
|
||||||
internal inline fun <reified T> MutableList<T?>.invalidateLast() {
|
|
||||||
val indexOfLast = size
|
|
||||||
if (indexOfLast > 0) {
|
|
||||||
set(indexOfLast - 1, null)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue