Skip to content

Commit

Permalink
Remove commented out code in ResourceRecord struct
Browse files Browse the repository at this point in the history
  • Loading branch information
Litr0 committed Nov 16, 2023
1 parent dc8a9bb commit 66805ec
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/message/resource_record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,19 +156,6 @@ impl ResourceRecord {
}
}

/* pub fn new(rdata: Rdata) -> ResourceRecord {
let mut resource_record = ResourceRecord {
name: DomainName::new(),
rtype: 0 as u16,
class: 0 as u16,
ttl: 0 as u32,
rdlength: 0 as u16,
rdata: rdata,
};
resource_record
}*/

/// Given an array of bytes, creates a new `ResourceRecord`.
///
/// # Examples
Expand Down

0 comments on commit 66805ec

Please sign in to comment.