Skip to content

Commit 491dee9

Browse files
committed
refactor: clean up codebase from test prints
1 parent 7113a9e commit 491dee9

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

crates/codemod-sandbox/src/ast_grep/native.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ async fn execute_ast_grep_on_globs_with_options(
260260
for entry in walker {
261261
let entry = entry.map_err(|e| AstGrepError::Io(std::io::Error::other(e)))?;
262262

263-
println!("SCAN FILE entry: {:?}", entry.path());
264263
if entry.file_type().is_some_and(|ft| ft.is_file()) {
265264
let matches = scan_file(entry.path(), &combined_scan, &rule_configs, apply_fixes)
266265
.await
@@ -320,8 +319,6 @@ async fn scan_file(
320319
let content = fs::read_to_string(file_path)?;
321320
let language = detect_language(file_path).map_err(|e| AstGrepError::Language(e.to_string()))?;
322321

323-
println!("language at SCAN FILE FYNC: {language:?}");
324-
325322
scan_content(
326323
&content,
327324
file_path,
@@ -341,18 +338,7 @@ async fn scan_content(
341338
_rule_configs: &[RuleConfig<DynamicLang>],
342339
apply_fixes: bool,
343340
) -> Result<Vec<AstGrepMatch>, AstGrepError> {
344-
println!("language at SCAN CONTENT: {language:?}");
345-
println!("extensions");
346-
347-
println!(
348-
"DynamicLang::all_langs() language.to_string(): {:?}",
349-
DynamicLang::all_langs()
350-
.iter()
351-
.map(|lang| lang.name())
352-
.collect::<Vec<_>>()
353-
);
354341
let dynamic_lang = DynamicLang::from_str(&language.to_string()).unwrap();
355-
println!("extensions loaded");
356342

357343
let doc = StrDoc::new(content, dynamic_lang);
358344
let root = AstGrep::doc(doc);

crates/codemod-sandbox/src/tree_sitter/mod.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ struct ReadyLang {
1515

1616
pub async fn load_tree_sitter(languages: &[SupportedLanguage]) -> Result<Vec<DynamicLang>, String> {
1717
let mut ready_langs = HashSet::new();
18-
println!("languages at load_tree_sitter: {languages:?}");
1918
for language in languages {
2019
let extensions = get_extensions_for_language(language.to_string().as_str());
2120
let os: &'static str = if env::consts::OS == "macos" {
@@ -67,13 +66,6 @@ pub async fn load_tree_sitter(languages: &[SupportedLanguage]) -> Result<Vec<Dyn
6766
lib_path: lib_path.clone(),
6867
});
6968
}
70-
println!(
71-
"ready_langs: {:?}",
72-
ready_langs
73-
.iter()
74-
.map(|lang| lang.language)
75-
.collect::<Vec<_>>()
76-
);
7769
let registrations: Vec<Registration> = ready_langs
7870
.iter()
7971
.map(|lang| Registration {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy