Skip to content

Commit

Permalink
Remove unused specialized State instance
Browse files Browse the repository at this point in the history
  • Loading branch information
ceedubs committed Jan 7, 2016
1 parent 81a24d9 commit d338150
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions core/src/main/scala/cats/state/StateT.scala
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ object StateT extends StateTInstances {
StateT(s => F.pure((s, a)))
}

private[state] sealed abstract class StateTInstances extends StateTInstances0 {
private[state] sealed abstract class StateTInstances {
implicit def stateTMonadState[F[_], S](implicit F: Monad[F]): MonadState[StateT[F, S, ?], S] =
new MonadState[StateT[F, S, ?], S] {
def pure[A](a: A): StateT[F, S, A] =
Expand All @@ -141,11 +141,6 @@ private[state] sealed abstract class StateTInstances extends StateTInstances0 {
}
}

private[state] sealed abstract class StateTInstances0 {
implicit def stateMonadState[S]: MonadState[State[S, ?], S] =
StateT.stateTMonadState[Eval, S]
}

// To workaround SI-7139 `object State` needs to be defined inside the package object
// together with the type alias.
private[state] abstract class StateFunctions {
Expand Down

0 comments on commit d338150

Please sign in to comment.