Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dinkelk committed Jan 22, 2024
1 parent 7ff26cd commit 3db7f4b
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/Database.hs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ import System.Exit (exitFailure)
import System.Environment (getEnv, setEnv)
import System.Random (randomRIO)

-- leveldb stuff
--import Database.LevelDB
--import Data.Default
--import Control.Monad.IO.Class (liftIO)

import DatabaseEntry
import PrettyPrint
import FilePathUtil
Expand Down Expand Up @@ -335,26 +330,11 @@ keyToTempKey key = TempKey $ unpathify $ keyToFilePath key
---------------------------------------------------------------------
-- Public functions initializing a redo session:
---------------------------------------------------------------------

--createLevelDatabase :: IO ()
--createLevelDatabase = runResourceT $ do
-- -- dir <- redoMetaDirectory
-- db <- open "yodle" defaultOptions{ createIfMissing = True , cacheSize= 2048 }
-- putStrLn' "Put value"
-- put db def foo bar
-- return ()
-- --get db def "foo" >>= liftIO . print
-- where
-- putStrLn' = liftIO . putStrLn
-- foo = BS.pack "foo"
-- bar = BS.pack "bar"

initializeSession :: IO ()
initializeSession = do
sessionNumber <- randomRIO (0, 1000000::Int)
setEnv "REDO_SESSION" (show sessionNumber)
createRedoTempDirectory
-- createLevelDatabase

---------------------------------------------------------------------
-- Public functions creating and clearing the cache
Expand Down

0 comments on commit 3db7f4b

Please sign in to comment.