From 3adbec15cba7c1e3140688fb28f7702269489fce Mon Sep 17 00:00:00 2001 From: Iaroslav Postovalov Date: Wed, 9 Dec 2020 14:45:12 +0700 Subject: [PATCH] Un-deprecate float reading and writing --- .../src/commonMain/kotlin/space/kscience/kmath/memory/Memory.kt | 2 -- .../src/commonTest/kotlin/kscience/kmath/memory/MemoryTest.kt | 1 - 2 files changed, 3 deletions(-) diff --git a/kmath-memory/src/commonMain/kotlin/space/kscience/kmath/memory/Memory.kt b/kmath-memory/src/commonMain/kotlin/space/kscience/kmath/memory/Memory.kt index 77157d91c..930b21095 100644 --- a/kmath-memory/src/commonMain/kotlin/space/kscience/kmath/memory/Memory.kt +++ b/kmath-memory/src/commonMain/kotlin/space/kscience/kmath/memory/Memory.kt @@ -57,7 +57,6 @@ public interface MemoryReader { /** * Reads [Float] at certain [offset]. */ - @Deprecated("readFloat and writeFloat functions work unexpectedly on JS platform, since because their results are widened when used. Consider using readDouble and writeDouble.") public fun readFloat(offset: Int): Float /** @@ -114,7 +113,6 @@ public interface MemoryWriter { /** * Writes [Float] at certain [offset]. */ - @Deprecated("readFloat and writeFloat functions work unexpectedly on JS platform, since because their results are widened when used. Consider using readDouble and writeDouble.") public fun writeFloat(offset: Int, value: Float) /** diff --git a/kmath-memory/src/commonTest/kotlin/kscience/kmath/memory/MemoryTest.kt b/kmath-memory/src/commonTest/kotlin/kscience/kmath/memory/MemoryTest.kt index 3c3a5e506..a828d7e9d 100644 --- a/kmath-memory/src/commonTest/kotlin/kscience/kmath/memory/MemoryTest.kt +++ b/kmath-memory/src/commonTest/kotlin/kscience/kmath/memory/MemoryTest.kt @@ -50,7 +50,6 @@ internal class MemoryTest { assertEquals(-50000333595959L, mem.read { readLong(16) }) } - @Suppress("DEPRECATION") @Test fun rwFloat() { val mem = Memory.allocate(64)