From 7b6e733892fb03e94dbd8a09cde378b1f19b4c5f Mon Sep 17 00:00:00 2001 From: mattwparas Date: Thu, 24 Aug 2023 08:37:00 -0700 Subject: [PATCH] remove dead code --- helix-core/src/syntax.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs index dcebe4d4e..bf167c28d 100644 --- a/helix-core/src/syntax.rs +++ b/helix-core/src/syntax.rs @@ -689,24 +689,13 @@ impl LanguageConfiguration { } fn load_query(&self, kind: &str) -> Option { - log::warn!("Loading tree sitter for {}", kind); - let query_text = read_query(&self.language_id, kind); if query_text.is_empty() { - log::warn!("Query text is empty, returning early"); - return None; } let lang = self.highlight_config.get()?.as_ref()?.language; Query::new(lang, &query_text) .map_err(|e| { - log::warn!( - "Failed to parse {} queries for {}: {}", - kind, - self.language_id, - e - ); - log::error!( "Failed to parse {} queries for {}: {}", kind,