Skip to content

Commit

Permalink
Remove commented out code.
Browse files Browse the repository at this point in the history
  • Loading branch information
ximon18 committed Dec 27, 2024
1 parent 7165146 commit e0cd687
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions src/sign/records.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,11 +449,6 @@ where
let apex_label_count = apex_owner.iter_labels().count();

let mut last_nent_stack: Vec<N> = vec![];
// let mut nsec3_hash_map = if capture_hash_to_owner_mappings {
// Some(HashMap::<N, N>::new())
// } else {
// None
// };

for family in families {
trace!("Family: {}", family.family_name().owner());
Expand Down Expand Up @@ -606,11 +601,6 @@ where
ttl,
)?;

// if let Some(nsec3_hash_map) = &mut nsec3_hash_map {
// nsec3_hash_map
// .insert(rec.owner().clone(), name.owner().clone());
// }

// Store the record by order of its owner name.
nsec3s.push(rec);

Expand All @@ -637,10 +627,6 @@ where
ttl,
)?;

// if let Some(nsec3_hash_map) = &mut nsec3_hash_map {
// nsec3_hash_map.insert(rec.owner().clone(), name);
// }

// Store the record by order of its owner name.
nsec3s.push(rec);
}
Expand Down Expand Up @@ -687,13 +673,7 @@ where
//
// Handled above.

let res = Nsec3Records::new(nsec3s.records, nsec3param);

// if let Some(nsec3_hash_map) = nsec3_hash_map {
// Ok(res.with_hashes(nsec3_hash_map))
// } else {
Ok(res)
// }
Ok(Nsec3Records::new(nsec3s.records, nsec3param))
}

pub fn write<W>(&self, target: &mut W) -> Result<(), fmt::Error>
Expand Down

0 comments on commit e0cd687

Please sign in to comment.