From bb5c288c2fd5a3e0bb383367683e9006b25b0fc7 Mon Sep 17 00:00:00 2001 From: Will Greenberg Date: Tue, 15 Apr 2025 18:21:10 -0700 Subject: [PATCH] rm unused function --- bin/src/qmdl_store.rs | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/bin/src/qmdl_store.rs b/bin/src/qmdl_store.rs index 9e1f805..9ad4577 100644 --- a/bin/src/qmdl_store.rs +++ b/bin/src/qmdl_store.rs @@ -115,37 +115,6 @@ impl RecordingStore { }) } - // Given a path to a directory of QMDL files, attempt to create a new - // manifest (and analysis files) from scratch. Useful if the existing - // manifest is corrupt or out of date. This will always re-run all - // analyzers over all of the given QMDLs. - pub async fn restore_from_dir

(path: P) -> Result - where - P: AsRef, - { - info!("restoring RecordingStore from dir {:?}", path.as_ref()); - let mut dir = fs::read_dir(path).await - .map_err(RecordingStoreError::OpenDirError)?; - loop { - let dir_entry = match dir.next_entry().await { - Ok(Some(entry)) => entry, - Ok(None) => break, - Err(err) => return Err(RecordingStoreError::OpenDirError(err)), - }; - let qmdl_path = dir_entry.path(); - if qmdl_path.ends_with("qmdl") { - info!("ignoring non-QMDL file {:?}", qmdl_path); - continue; - } - let mut manifest_entry = ManifestEntry::new(); - manifest_entry.name = qmdl_path.file_stem() - .unwrap() - .to_string_lossy() - .into_owned(); - } - todo!(); - } - // Creates a new RecordingStore at the given path. This involves creating a dir // and writing an empty manifest. pub async fn create

(path: P) -> Result