Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
[CDEC-451] Remove Mockable; update test packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Hueschen committed Jul 21, 2018
1 parent 058e793 commit eb060b6
Show file tree
Hide file tree
Showing 19 changed files with 3 additions and 1,196 deletions.
15 changes: 0 additions & 15 deletions core/cardano-sl-core.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -60,21 +60,6 @@ library
-- Concurrency operations, previously
-- in `Mockable`.
Pos.Core.Conc
-- Mockable (moved from networking in
-- the `sinbin` shuffle). All modules
-- must be exposed so that `networking`
-- can import & re-export them.
Pos.Core.Mockable
Pos.Core.Mockable.Channel
Pos.Core.Mockable.Class
Pos.Core.Mockable.Concurrent
Pos.Core.Mockable.CurrentTime
Pos.Core.Mockable.Instances
Pos.Core.Mockable.Monad
Pos.Core.Mockable.Production
Pos.Core.Mockable.SharedAtomic
Pos.Core.Mockable.SharedExclusive
Pos.Core.Mockable.Metrics

Pos.Core.Reporting

Expand Down
32 changes: 0 additions & 32 deletions core/src/Pos/Core/JsonLog/JsonLogT.hs
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ import System.Wlog (CanLog, HasLoggerName (..), WithLogger,

import Pos.Core.JsonLog.CanJsonLog (CanJsonLog (..))
import Pos.Core.JsonLog.Event (JLTimedEvent, timedIO, toEvent)
import Pos.Core.Mockable.Channel (ChannelT)
import Pos.Core.Mockable.Concurrent (Promise, ThreadId)
import Pos.Core.Mockable.Metrics (Counter, Distribution, Gauge)
import Pos.Core.Mockable.SharedAtomic (SharedAtomicT)
import Pos.Core.Mockable.SharedExclusive (SharedExclusiveT)

data JsonLogConfig
= JsonLogDisabled
Expand Down Expand Up @@ -84,33 +79,6 @@ instance WithLogger m => HasLoggerName (JsonLogT m) where



type instance Gauge (JsonLogT m) = Gauge m
type instance Counter (JsonLogT m) = Counter m
type instance Distribution (JsonLogT m) = Distribution m
type instance ThreadId (JsonLogT m) = ThreadId m
type instance Promise (JsonLogT m) = Promise m
type instance SharedAtomicT (JsonLogT m) = SharedAtomicT m
type instance SharedExclusiveT (JsonLogT m) = SharedExclusiveT m
type instance ChannelT (JsonLogT m) = ChannelT m




















jsonLogDefault
:: (ToJSON a, MonadCatch m, MonadIO m, WithLogger m)
Expand Down
14 changes: 0 additions & 14 deletions core/src/Pos/Core/Mockable.hs

This file was deleted.

58 changes: 0 additions & 58 deletions core/src/Pos/Core/Mockable/Channel.hs

This file was deleted.

37 changes: 0 additions & 37 deletions core/src/Pos/Core/Mockable/Class.hs

This file was deleted.

Loading

0 comments on commit eb060b6

Please sign in to comment.