Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
refactor: remove unneeded logic for repeated words
hippietraile4f697f4669e
diff --git a/harper-core/src/linting/repeated_words.rs b/harper-core/src/linting/repeated_words.rsindex 09a60ce6b..2d8c02178 100644--- a/harper-core/src/linting/repeated_words.rs+++ b/harper-core/src/linting/repeated_words.rs@@ -12,7 +12,7 @@ pub struct RepeatedWords {impl RepeatedWords {pub fn new() -> Self {Self {- special_cases: vec![char_string!("is"), char_string!("this")],+ special_cases: vec![char_string!("this")],}}diff --git a/harper-core/src/word_metadata.rs b/harper-core/src/word_metadata.rsindex f1dda7e25..c8182784a 100644--- a/harper-core/src/word_metadata.rs+++ b/harper-core/src/word_metadata.rs@@ -45,10 +45,6 @@ macro_rules! generate_metadata_queries {($($category:ident has $($sub:ident),*).*) => {paste! {pub fn is_likely_homograph(&self) -> bool {- if [$($(self.[< is_ $sub _ $category >](),)*)*].iter().map(|b| *b as u8).sum::<u8>() > 1 {- return true;- }-[self.determiner, self.preposition, $(self.[< is_ $category >](),)*].iter().map(|b| *b as u8).sum::<u8>() > 1