Clean up print commands

This commit is contained in:
Jaby 2022-11-17 03:54:48 +01:00
parent dbb5fb9721
commit 06a652cce4
3 changed files with 5 additions and 7 deletions

View File

@ -68,8 +68,6 @@ pub fn calculate_psx_lbas(cd_desc: &mut CDDesc) {
cur_lba = update_lba(&mut file.properties, cur_lba, sector_count);
}
}
println!("cur_lba: {}", cur_lba);
}
}

View File

@ -36,14 +36,15 @@ fn run_main(cmd_line: CommandLine) -> Result<(), Error> {
let encoding_functions = cmd_line.system_type.get_encoding_functions();
let desc = psxcdgen_ex::process(config_reader::parse_xml(std::fs::read_to_string(cmd_line.input_file)?)?, encoding_functions.lba_calculator)?;
/*
// Describes how to use the the file_map
println!("\n<== Planschbecken ==>");
for rand_item in desc.create_file_map() {
println!("{}", rand_item.0);
}
println!("\n<== Planschbecken ==>");
println!("\n<== Planschbecken ==>");*/
psxcdgen_ex::dump_content(&desc, tool_helper::open_output(None)?)?;
println!("\n<== Planschbecken ==>\nStart encoding");
write_image(desc, encoding_functions.encoder, cmd_line.output_type, cmd_line.output_file)
}
@ -51,7 +52,7 @@ fn main() {
match CommandLine::try_parse() {
Ok(cmd_line) => {
match run_main(cmd_line) {
Ok(_) => println!("\n<== Planschbecken End ==>"),
Ok(_) => (),
Err(error) => println!("{}", error)
}
},

View File

@ -84,7 +84,6 @@ impl PathTable {
let mut size_bytes = 0;
Self::collect_member(root).into_iter().for_each(|element| {
println!("PT: {} ^{}", element.name, element.parent_table_id);
size_bytes += PathTableL::calculate_size_for(element.name.as_ref());
});