mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Remove remaining remnants of unused error; fix CI
This commit is contained in:
parent
15fde04264
commit
01c368654b
3 changed files with 1 additions and 8 deletions
|
@ -40,9 +40,8 @@ message HelpPageLinkRequest {
|
||||||
CARD_TYPE_DUPLICATE = 18;
|
CARD_TYPE_DUPLICATE = 18;
|
||||||
CARD_TYPE_NO_FRONT_FIELD = 19;
|
CARD_TYPE_NO_FRONT_FIELD = 19;
|
||||||
CARD_TYPE_MISSING_CLOZE = 20;
|
CARD_TYPE_MISSING_CLOZE = 20;
|
||||||
CARD_TYPE_EXTRANEOUS_CLOZE = 21;
|
TROUBLESHOOTING = 21;
|
||||||
CARD_TYPE_TEMPLATE_ERROR = 22;
|
CARD_TYPE_TEMPLATE_ERROR = 22;
|
||||||
TROUBLESHOOTING = 23;
|
|
||||||
}
|
}
|
||||||
HelpPage page = 1;
|
HelpPage page = 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -148,7 +148,6 @@ impl AnkiError {
|
||||||
tr.card_templates_identical_front(index + 1)
|
tr.card_templates_identical_front(index + 1)
|
||||||
}
|
}
|
||||||
CardTypeErrorDetails::MissingCloze => tr.card_templates_missing_cloze(),
|
CardTypeErrorDetails::MissingCloze => tr.card_templates_missing_cloze(),
|
||||||
CardTypeErrorDetails::ExtraneousCloze => tr.card_templates_extraneous_cloze(),
|
|
||||||
};
|
};
|
||||||
format!("{}<br>{}", header, details)
|
format!("{}<br>{}", header, details)
|
||||||
}
|
}
|
||||||
|
@ -203,7 +202,6 @@ impl AnkiError {
|
||||||
CardTypeErrorDetails::Duplicate { .. } => HelpPage::CardTypeDuplicate,
|
CardTypeErrorDetails::Duplicate { .. } => HelpPage::CardTypeDuplicate,
|
||||||
CardTypeErrorDetails::NoFrontField => HelpPage::CardTypeNoFrontField,
|
CardTypeErrorDetails::NoFrontField => HelpPage::CardTypeNoFrontField,
|
||||||
CardTypeErrorDetails::MissingCloze => HelpPage::CardTypeMissingCloze,
|
CardTypeErrorDetails::MissingCloze => HelpPage::CardTypeMissingCloze,
|
||||||
CardTypeErrorDetails::ExtraneousCloze => HelpPage::CardTypeExtraneousCloze,
|
|
||||||
}),
|
}),
|
||||||
_ => None,
|
_ => None,
|
||||||
}
|
}
|
||||||
|
@ -323,5 +321,4 @@ pub enum CardTypeErrorDetails {
|
||||||
NoFrontField,
|
NoFrontField,
|
||||||
NoSuchField { field: String },
|
NoSuchField { field: String },
|
||||||
MissingCloze,
|
MissingCloze,
|
||||||
ExtraneousCloze,
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,9 +38,6 @@ pub fn help_page_link_suffix(page: HelpPage) -> &'static str {
|
||||||
"templates/errors.html#no-field-replacement-on-front-side"
|
"templates/errors.html#no-field-replacement-on-front-side"
|
||||||
}
|
}
|
||||||
HelpPage::CardTypeMissingCloze => "templates/errors.html#no-cloze-filter-on-cloze-notetype",
|
HelpPage::CardTypeMissingCloze => "templates/errors.html#no-cloze-filter-on-cloze-notetype",
|
||||||
HelpPage::CardTypeExtraneousCloze => {
|
|
||||||
"templates/errors.html#cloze-filter-outside-cloze-notetype"
|
|
||||||
}
|
|
||||||
HelpPage::Troubleshooting => "troubleshooting.html",
|
HelpPage::Troubleshooting => "troubleshooting.html",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue