mirror of
				https://github.com/TheAnachronism/docspell.git
				synced 2025-11-04 12:30:12 +00:00 
			
		
		
		
	Remove unused contact kind
This commit is contained in:
		@@ -20,7 +20,6 @@ object ContactKind {
 | 
			
		||||
  case object Mobile  extends ContactKind
 | 
			
		||||
  case object Fax     extends ContactKind
 | 
			
		||||
  case object Email   extends ContactKind
 | 
			
		||||
  case object Docspell extends ContactKind
 | 
			
		||||
  case object Website extends ContactKind
 | 
			
		||||
 | 
			
		||||
  def fromString(s: String): Either[String, ContactKind] =
 | 
			
		||||
@@ -29,7 +28,6 @@ object ContactKind {
 | 
			
		||||
      case "mobile"  => Right(Mobile)
 | 
			
		||||
      case "fax"     => Right(Fax)
 | 
			
		||||
      case "email"   => Right(Email)
 | 
			
		||||
      case "docspell" => Right(Docspell)
 | 
			
		||||
      case "website" => Right(Website)
 | 
			
		||||
      case _         => Left(s"Not a state value: $s")
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -18,7 +18,6 @@ type ContactType
 | 
			
		||||
    | Mobile
 | 
			
		||||
    | Fax
 | 
			
		||||
    | Email
 | 
			
		||||
    | Docspell
 | 
			
		||||
    | Website
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -37,9 +36,6 @@ fromString str =
 | 
			
		||||
        "email" ->
 | 
			
		||||
            Just Email
 | 
			
		||||
 | 
			
		||||
        "docspell" ->
 | 
			
		||||
            Just Docspell
 | 
			
		||||
 | 
			
		||||
        "website" ->
 | 
			
		||||
            Just Website
 | 
			
		||||
 | 
			
		||||
@@ -62,9 +58,6 @@ toString ct =
 | 
			
		||||
        Email ->
 | 
			
		||||
            "Email"
 | 
			
		||||
 | 
			
		||||
        Docspell ->
 | 
			
		||||
            "Docspell"
 | 
			
		||||
 | 
			
		||||
        Website ->
 | 
			
		||||
            "Website"
 | 
			
		||||
 | 
			
		||||
@@ -76,5 +69,4 @@ all =
 | 
			
		||||
    , Email
 | 
			
		||||
    , Website
 | 
			
		||||
    , Fax
 | 
			
		||||
    , Docspell
 | 
			
		||||
    ]
 | 
			
		||||
 
 | 
			
		||||
@@ -28,9 +28,6 @@ gb ct =
 | 
			
		||||
        Email ->
 | 
			
		||||
            "Email"
 | 
			
		||||
 | 
			
		||||
        Docspell ->
 | 
			
		||||
            "Docspell"
 | 
			
		||||
 | 
			
		||||
        Website ->
 | 
			
		||||
            "Website"
 | 
			
		||||
 | 
			
		||||
@@ -50,8 +47,5 @@ de ct =
 | 
			
		||||
        Email ->
 | 
			
		||||
            "E-Mail"
 | 
			
		||||
 | 
			
		||||
        Docspell ->
 | 
			
		||||
            "Docspell"
 | 
			
		||||
 | 
			
		||||
        Website ->
 | 
			
		||||
            "Webseite"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user