Skip to content

Commit 8c2d715

Browse files
committed
Changed removeFirst() to removeAt(0) due to Android compatibility warning
1 parent a2924fe commit 8c2d715

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/commonMain/kotlin/com/ashampoo/kim/format/tiff/write/TiffWriterLossless.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public class TiffWriterLossless(
249249
while (unplacedItems.isNotEmpty()) {
250250

251251
/* Pop off largest unplaced item. */
252-
val outputItem = unplacedItems.removeFirst()
252+
val outputItem = unplacedItems.removeAt(0)
253253

254254
val outputItemLength = outputItem.getItemLength()
255255

src/commonMain/kotlin/com/ashampoo/kim/input/PrePendingByteReader.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ internal class PrePendingByteReader(
3232
override fun readByte(): Byte? {
3333

3434
if (prependedBytesBuffer.isNotEmpty())
35-
return prependedBytesBuffer.removeFirst()
35+
return prependedBytesBuffer.removeAt(0)
3636

3737
return delegate.readByte()
3838
}
@@ -48,7 +48,7 @@ internal class PrePendingByteReader(
4848
/* Read prepended bytes first */
4949
while (bytesRead < count && prependedBytesBuffer.isNotEmpty()) {
5050

51-
bytes[bytesRead] = prependedBytesBuffer.removeFirst()
51+
bytes[bytesRead] = prependedBytesBuffer.removeAt(0)
5252

5353
bytesRead++
5454
}

0 commit comments

Comments
 (0)