summaryrefslogtreecommitdiff
path: root/src/Erebos/Storage/Internal.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Erebos/Storage/Internal.hs')
-rw-r--r--src/Erebos/Storage/Internal.hs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/Erebos/Storage/Internal.hs b/src/Erebos/Storage/Internal.hs
index db211bb..70a69b4 100644
--- a/src/Erebos/Storage/Internal.hs
+++ b/src/Erebos/Storage/Internal.hs
@@ -15,7 +15,6 @@ module Erebos.Storage.Internal (
StorageBackend(..),
Complete, Partial,
- unsafeStoreRawBytes,
ioLoadBytesFromStorage,
Generation(..),
@@ -26,7 +25,6 @@ module Erebos.Storage.Internal (
import Control.Arrow
import Control.Concurrent
import Control.DeepSeq
-import Control.Exception
import Control.Monad.Identity
import Crypto.Hash
@@ -275,12 +273,6 @@ instance StorageCompleteness Partial where
returnLoadResult = id
ioLoadBytes (Ref st dgst) = maybe (Left dgst) Right <$> ioLoadBytesFromStorage st dgst
-unsafeStoreRawBytes :: Storage' c -> BL.ByteString -> IO (Ref' c)
-unsafeStoreRawBytes st@Storage {..} raw = do
- dgst <- evaluate $ force $ hashToRefDigest raw
- backendStoreBytes stBackend dgst raw
- return $ Ref st dgst
-
ioLoadBytesFromStorage :: Storage' c -> RefDigest -> IO (Maybe BL.ByteString)
ioLoadBytesFromStorage Storage {..} dgst =
backendLoadBytes stBackend dgst >>= \case