removing cruft
This commit is contained in:
parent
76bb6fb19b
commit
a9722e37a0
1 changed files with 0 additions and 16 deletions
|
@ -1,15 +1,6 @@
|
|||
// use dirs;
|
||||
use std::fs::read_to_string;
|
||||
|
||||
// struct Slide {
|
||||
// num_fragments: usize,
|
||||
// }
|
||||
|
||||
// struct Presentation {
|
||||
// num_slides: usize,
|
||||
// num_fragments: usize,
|
||||
// }
|
||||
|
||||
pub fn count_slides_and_fragments(html_file_path: &str) -> i32 {
|
||||
// Read the HTML file
|
||||
let html_content = read_to_string(html_file_path).expect("Failed to read HTML file");
|
||||
|
@ -35,10 +26,3 @@ pub fn count_slides_and_fragments(html_file_path: &str) -> i32 {
|
|||
|
||||
total as i32
|
||||
}
|
||||
|
||||
// fn main() {
|
||||
// let html_file_path = "path/to/presentation.html";
|
||||
// let presentation = count_slides_and_fragments(html_file_path);
|
||||
|
||||
// println!("Total number of slides: {}", presentation.num_slides);
|
||||
// println!("Total number of fragments: {}", presentation
|
Loading…
Add table
Add a link
Reference in a new issue