Remove debug statements.

This commit is contained in:
Bas Wiel, van de 2024-05-12 16:23:47 +02:00
parent 28835e7020
commit 86419a8900
4 changed files with 0 additions and 15 deletions

View File

@ -137,17 +137,6 @@ impl DiskBuilder {
if entry.entry_type == DirEntryType::Directory && (entry.directory_name() == "." || entry.directory_name() == "..") {
return Ok(());
}
/*if addresses.len() != chunks.len() && entry.entry_type != DirEntryType::Directory {
println!(
"We have {} clusters and {} chunks for {}",
addresses.len(),
chunks.len(), entry.directory_name()
);
return Err(std::io::Error::new(
std::io::ErrorKind::Other,
"Number of allocated clusters does not match the number of data chunks.",
));
}*/
// Iterate over addresses and chunks to write data directly
for (address, chunk) in addresses.iter().zip(chunks) {
@ -412,7 +401,6 @@ impl DiskBuilder {
self.write_dirs()?;
self.write_allocation_tables()?;
self.disk.commit_storage()?;
println!("{:?}", self.filesystem.arena);
Ok(())
}

View File

@ -184,7 +184,6 @@ impl AllocationTable {
bytes.push(decomposed[0]);
bytes.push(decomposed[1]);
}
println!("Allocation table bytes: {:?}", bytes);
Ok(bytes)
}

View File

@ -52,7 +52,6 @@ impl Cluster {
/// Allocate the cluster
pub fn allocate(&mut self, value: u32) -> Result<(), std::io::Error> {
if self.state == ClusterState::Allocated {
println!("{:?}", self);
return Err(std::io::Error::new(
std::io::ErrorKind::Other,
"The current cluster was already allocated. Refusing to proceed.",

View File

@ -224,7 +224,6 @@ impl DirEntry {
true => DirEntryType::SysFile,
false => DirEntryType::File,
};
println!("So {} gets attributes {:?}", filename, attributes);
// Either use the provided TimeDate or get the current system TimeDate
let effective_timedate = create_timedate.unwrap_or_else(TimeDate::now);