From 8ce46363a975bb0f87dbef6ffae04f0c4dd7ffa2 Mon Sep 17 00:00:00 2001 From: Jonatan Borkowski Date: Fri, 12 Apr 2024 13:02:04 +0000 Subject: [PATCH] Remove unsafeToArray --- src/Specular/Internal/Incremental/MutableArray.purs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Specular/Internal/Incremental/MutableArray.purs b/src/Specular/Internal/Incremental/MutableArray.purs index 59dbb2b..d39f625 100644 --- a/src/Specular/Internal/Incremental/MutableArray.purs +++ b/src/Specular/Internal/Incremental/MutableArray.purs @@ -4,15 +4,11 @@ import Prelude import Effect (Effect) import Effect.Uncurried (EffectFn1, EffectFn2) -import Unsafe.Coerce (unsafeCoerce) foreign import data MutableArray :: Type -> Type foreign import empty :: forall a. Effect (MutableArray a) -unsafeToArray :: forall a. MutableArray a -> Array a -unsafeToArray x = unsafeCoerce x - foreign import push :: forall a. EffectFn2 (MutableArray a) a Unit foreign import length :: forall a. EffectFn1 (MutableArray a) Int