Skip to content

Commit

Permalink
Remove some dead code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip-NLnetLabs committed Sep 5, 2024
1 parent fb2f7ec commit 2c779d4
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/net/server/single_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,28 +151,6 @@ impl ComposeReply for ReplyMessage {
for rr in source {
let rr = rr.unwrap();
if rr.rtype() == Rtype::OPT {
/*
let rr = rr.into_record::<Opt<_>>().unwrap().unwrap();
let opt_record = OptRecord::from_record(rr);
target
.opt(|newopt| {
newopt
.set_udp_payload_size(opt_record.udp_payload_size());
newopt.set_version(opt_record.version());
newopt.set_dnssec_ok(opt_record.dnssec_ok());
// Copy the transitive options that we support.
for option in opt_record.opt().iter::<AllOptData<_, _>>()
{
let option = option.unwrap();
if let AllOptData::ExtendedError(_) = option {
newopt.push(&option).unwrap();
}
}
Ok(())
})
.unwrap();
*/
} else {
let rr = rr
.into_record::<AllRecordData<_, ParsedName<_>>>()
Expand Down

0 comments on commit 2c779d4

Please sign in to comment.