Skip to content

Commit 23f35b1

Browse files
committed
Remove eprint! statements
Pretty sure these were just added for debugging.
1 parent f5743c1 commit 23f35b1

2 files changed

Lines changed: 0 additions & 7 deletions

File tree

‎rust/src/caching.rs‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ pub fn write_cache_data_map_file<'py>(
2020
imports_by_module: Bound<'py, PyDict>,
2121
file_system: Bound<'py, PyAny>,
2222
) -> PyResult<()> {
23-
eprintln!("About to clone for write.");
2423
let mut file_system_boxed = get_file_system_boxed(&file_system)?;
2524

2625
let imports_by_module_rust = imports_by_module_to_rust(imports_by_module);
@@ -43,7 +42,6 @@ pub fn read_cache_data_map_file<'py>(
4342
filename: &str,
4443
file_system: Bound<'py, PyAny>,
4544
) -> PyResult<Bound<'py, PyDict>> {
46-
eprintln!("About to clone for read.");
4745
let file_system_boxed = get_file_system_boxed(&file_system)?;
4846

4947
let file_contents = file_system_boxed.read(filename)?;

‎rust/src/filesystem.rs‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,6 @@ impl FileSystem for FakeBasicFileSystem {
255255

256256
fn read(&self, file_name: &str) -> PyResult<String> {
257257
let contents = self.contents.lock().unwrap();
258-
eprintln!("{:?}", contents.keys().collect::<Vec<_>>());
259258
match contents.get(file_name) {
260259
Some(file_contents) => Ok(file_contents.clone()),
261260
None => Err(PyFileNotFoundError::new_err(format!(
@@ -266,11 +265,8 @@ impl FileSystem for FakeBasicFileSystem {
266265

267266
#[allow(unused_variables)]
268267
fn write(&mut self, file_name: &str, contents: &str) -> PyResult<()> {
269-
eprintln!("Writing into fake {}, {}", file_name, contents);
270268
let mut contents_mut = self.contents.lock().unwrap();
271-
eprintln!("Contents currently {:?}", *contents_mut);
272269
contents_mut.insert(file_name.to_string(), contents.to_string());
273-
eprintln!("Contents now {:?}", *contents_mut);
274270
Ok(())
275271
}
276272
}
@@ -415,7 +411,6 @@ pub fn get_file_system_boxed<'py>(
415411
file_system: &Bound<'py, PyAny>,
416412
) -> PyResult<Box<dyn FileSystem + Send + Sync>> {
417413
let file_system_boxed: Box<dyn FileSystem + Send + Sync>;
418-
eprintln!("Cloning file system.");
419414
if let Ok(py_real) = file_system.extract::<PyRef<PyRealBasicFileSystem>>() {
420415
file_system_boxed = Box::new(py_real.inner.clone());
421416
} else if let Ok(py_fake) = file_system.extract::<PyRef<PyFakeBasicFileSystem>>() {

0 commit comments

Comments
 (0)