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)