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