A very simple GetAffiliatedKeywords trait.

This commit is contained in:
Tom Alexander
2023-10-11 12:19:27 -04:00
parent c4cc40f5e1
commit 8e0a7dea0f
4 changed files with 12 additions and 27 deletions

View File

@@ -9,7 +9,6 @@ use crate::compare::diff::compare_ast_node;
use crate::compare::sexp::unquote;
use crate::types::AstNode;
use crate::types::GetStandardProperties;
use crate::types::Keyword;
use crate::types::StandardProperties;
/// Check if the child string slice is a slice of the parent string slice.
@@ -338,29 +337,3 @@ where
}
Ok(ComparePropertiesResult::NoChange)
}
// pub(crate) fn compare_affiliated_keywords<'b, 's, RK, RV, RI>(
// emacs: &'b Token<'s>,
// rust_children: RI,
// ) -> Result<ComparePropertiesResult<'b, 's>, Box<dyn std::error::Error>>
// where
// RI: Iterator<Item = &'b Keyword<'s>> + ExactSizeIterator,
// {
// for kw in rust_children {
// }
// for (rust_key, rust_value) in rust_children {
// let rust_key = rust_key.as_ref();
// let rust_value = rust_value.as_ref();
// let emacs_value = get_property_quoted_string(emacs, rust_key)?;
// if Some(rust_value) != emacs_value.as_ref().map(String::as_str) {
// let this_status = DiffStatus::Bad;
// let message = Some(format!(
// "{} mismatch (emacs != rust) {:?} != {:?}",
// rust_key, emacs_value, rust_value
// ));
// return Ok(ComparePropertiesResult::SelfChange(this_status, message));
// }
// }
// Ok(ComparePropertiesResult::NoChange)
// }