diff --git a/proto/anki/links.proto b/proto/anki/links.proto index dc3bd0552..6dd9ad8c6 100644 --- a/proto/anki/links.proto +++ b/proto/anki/links.proto @@ -40,9 +40,8 @@ message HelpPageLinkRequest { CARD_TYPE_DUPLICATE = 18; CARD_TYPE_NO_FRONT_FIELD = 19; CARD_TYPE_MISSING_CLOZE = 20; - CARD_TYPE_EXTRANEOUS_CLOZE = 21; + TROUBLESHOOTING = 21; CARD_TYPE_TEMPLATE_ERROR = 22; - TROUBLESHOOTING = 23; } HelpPage page = 1; } diff --git a/rslib/src/error/mod.rs b/rslib/src/error/mod.rs index 72ba05baf..0da89e0ff 100644 --- a/rslib/src/error/mod.rs +++ b/rslib/src/error/mod.rs @@ -148,7 +148,6 @@ impl AnkiError { tr.card_templates_identical_front(index + 1) } CardTypeErrorDetails::MissingCloze => tr.card_templates_missing_cloze(), - CardTypeErrorDetails::ExtraneousCloze => tr.card_templates_extraneous_cloze(), }; format!("{}
{}", header, details) } @@ -203,7 +202,6 @@ impl AnkiError { CardTypeErrorDetails::Duplicate { .. } => HelpPage::CardTypeDuplicate, CardTypeErrorDetails::NoFrontField => HelpPage::CardTypeNoFrontField, CardTypeErrorDetails::MissingCloze => HelpPage::CardTypeMissingCloze, - CardTypeErrorDetails::ExtraneousCloze => HelpPage::CardTypeExtraneousCloze, }), _ => None, } @@ -323,5 +321,4 @@ pub enum CardTypeErrorDetails { NoFrontField, NoSuchField { field: String }, MissingCloze, - ExtraneousCloze, } diff --git a/rslib/src/links.rs b/rslib/src/links.rs index 90e8e9ae2..5b72c2b62 100644 --- a/rslib/src/links.rs +++ b/rslib/src/links.rs @@ -38,9 +38,6 @@ pub fn help_page_link_suffix(page: HelpPage) -> &'static str { "templates/errors.html#no-field-replacement-on-front-side" } 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", } }