Skip to content

Commit

Permalink
rm comments
Browse files Browse the repository at this point in the history
  • Loading branch information
blopker committed Jan 26, 2025
1 parent ec2bd21 commit 9367618
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 33 deletions.
4 changes: 2 additions & 2 deletions codebook-lsp/src/lsp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,10 @@ impl Backend {
Some(doc) => doc,
None => return,
};
// Convert the file URI to a local file path (if needed).
// Convert the file URI to a local file path.
let file_path = doc.uri.to_file_path().unwrap_or_default();
info!("Spell-checking file: {:?}", file_path);
// 1) Perform spell-check (stubbed function below).
// 1) Perform spell-check.
let spell_results = self.codebook.dictionary.spell_check(
&doc.text,
doc.language_id.as_deref(),
Expand Down
31 changes: 0 additions & 31 deletions codebook/src/downloader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,37 +302,6 @@ impl DictionaryDownloader {
}
}

// =====================
// Example usage (comment out if you don't want a main):
// =====================
// fn main() -> Result<(), Box<dyn std::error::Error>> {
// let downloader = DictionaryDownloader::new(
// "https://raw.githubusercontent.com/blopker/dictionaries",
// "./dictionary_cache",
// );
//
// // 1) Using the `get` method
// let info = downloader.get("en")?;
// println!(
// "[get] EN dictionary => dic: {}, aff: {}, stale: {}s",
// info.dic_local_path, info.aff_local_path, info.stale_seconds
// );
//
// // 2) Using the download methods
// let results = downloader.download_dictionaries(vec!["de", "fr"]);
// for res in results {
// match res {
// Ok(info) => {
// for info in info {
// println!("Downloaded => {:?}", info);
// }
// },
// Err(e) => eprintln!("Error: {}", e),
// }
// }
// Ok(())
// }

// =====================
// Unit Tests
// =====================
Expand Down

0 comments on commit 9367618

Please sign in to comment.