mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Remove SearchErrorKind::Regex as it's never used
This commit is contained in:
parent
4a85ebeda2
commit
9b2cd52b97
1 changed files with 0 additions and 4 deletions
|
@ -34,7 +34,6 @@ pub enum SearchErrorKind {
|
|||
InvalidPositiveWholeNumber { provided: String, context: String },
|
||||
InvalidNegativeWholeNumber { provided: String, context: String },
|
||||
InvalidAnswerButton { provided: String, context: String },
|
||||
Regex(String),
|
||||
Other(Option<String>),
|
||||
}
|
||||
|
||||
|
@ -96,9 +95,6 @@ impl SearchErrorKind {
|
|||
SearchErrorKind::InvalidPropOperator(ctx) => {
|
||||
tr.search_invalid_prop_operator(ctx.as_str())
|
||||
}
|
||||
SearchErrorKind::Regex(text) => {
|
||||
format!("<pre>`{}`</pre>", text.replace('`', "'")).into()
|
||||
}
|
||||
SearchErrorKind::Other(Some(info)) => info.into(),
|
||||
SearchErrorKind::Other(None) => tr.search_invalid_other(),
|
||||
SearchErrorKind::InvalidNumber { provided, context } => {
|
||||
|
|
Loading…
Reference in a new issue