Remove unused code

This commit is contained in:
eikek 2021-09-05 17:32:32 +02:00
parent aef56233a5
commit aa099a340e
4 changed files with 10 additions and 25 deletions

View File

@ -115,28 +115,6 @@ object OCollective {
def userNotLocal: PassChangeResult = UserNotLocal
}
case class RegisterData(
collName: Ident,
login: Ident,
password: Password,
invite: Option[Ident]
)
sealed trait RegisterResult {
def toEither: Either[Throwable, Unit]
}
object RegisterResult {
case object Success extends RegisterResult {
val toEither = Right(())
}
case class CollectiveExists(id: Ident) extends RegisterResult {
val toEither = Left(new Exception())
}
case class Error(ex: Throwable) extends RegisterResult {
val toEither = Left(ex)
}
}
def apply[F[_]: Async](
store: Store[F],
uts: UserTaskStore[F],

View File

@ -10,7 +10,6 @@ import cats.effect.{Async, Resource}
import cats.implicits._
import docspell.backend.PasswordCrypt
import docspell.backend.ops.OCollective.RegisterData
import docspell.common._
import docspell.common.syntax.all._
import docspell.store.records.{RCollective, RInvitation, RUser}

View File

@ -0,0 +1,9 @@
package docspell.backend.signup
import docspell.common._
case class RegisterData(
collName: Ident,
login: Ident,
password: Password,
invite: Option[Ident]
)

View File

@ -10,8 +10,7 @@ import cats.effect._
import cats.implicits._
import docspell.backend.BackendApp
import docspell.backend.ops.OCollective.RegisterData
import docspell.backend.signup.{NewInviteResult, SignupResult}
import docspell.backend.signup.{NewInviteResult, RegisterData, SignupResult}
import docspell.restapi.model._
import docspell.restserver.Config
import docspell.restserver.http4s.ResponseGenerator