Skip to content

Commit d589085

Browse files
committed
dnsdist: Remove unused Rust validation functions
1 parent 552209f commit d589085

File tree

2 files changed

+0
-48
lines changed

2 files changed

+0
-48
lines changed

pdns/dnsdistdist/dnsdist-rust-lib/rust-middle-in.rs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -62,24 +62,6 @@ struct ContinueActionConfigurationSerde {
6262
action: Box<Action>,
6363
}
6464

65-
impl Selector {
66-
fn validate(&self) -> Result<(), ValidationError> {
67-
Ok(())
68-
}
69-
}
70-
71-
impl Action {
72-
fn validate(&self) -> Result<(), ValidationError> {
73-
Ok(())
74-
}
75-
}
76-
77-
impl ResponseAction {
78-
fn validate(&self) -> Result<(), ValidationError> {
79-
Ok(())
80-
}
81-
}
82-
8365
#[derive(Default, Deserialize, Serialize, Debug, PartialEq)]
8466
#[serde(deny_unknown_fields)]
8567
struct QueryRuleConfigurationSerde {
@@ -114,12 +96,6 @@ impl ResponseRuleConfigurationSerde {
11496
}
11597
}
11698

117-
impl dnsdistsettings::SharedDNSAction {
118-
fn validate(&self) -> Result<(), ValidationError> {
119-
Ok(())
120-
}
121-
}
122-
12399
impl dnsdistsettings::SharedDNSResponseAction {
124100
fn validate(&self) -> Result<(), ValidationError> {
125101
Ok(())

pdns/dnsdistdist/dnsdist-rust-lib/rust/src/lib.rs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2218,24 +2218,6 @@ struct ContinueActionConfigurationSerde {
22182218
action: Box<Action>,
22192219
}
22202220

2221-
impl Selector {
2222-
fn validate(&self) -> Result<(), ValidationError> {
2223-
Ok(())
2224-
}
2225-
}
2226-
2227-
impl Action {
2228-
fn validate(&self) -> Result<(), ValidationError> {
2229-
Ok(())
2230-
}
2231-
}
2232-
2233-
impl ResponseAction {
2234-
fn validate(&self) -> Result<(), ValidationError> {
2235-
Ok(())
2236-
}
2237-
}
2238-
22392221
#[derive(Default, Deserialize, Serialize, Debug, PartialEq)]
22402222
#[serde(deny_unknown_fields)]
22412223
struct QueryRuleConfigurationSerde {
@@ -2270,12 +2252,6 @@ impl ResponseRuleConfigurationSerde {
22702252
}
22712253
}
22722254

2273-
impl dnsdistsettings::SharedDNSAction {
2274-
fn validate(&self) -> Result<(), ValidationError> {
2275-
Ok(())
2276-
}
2277-
}
2278-
22792255
impl dnsdistsettings::SharedDNSResponseAction {
22802256
fn validate(&self) -> Result<(), ValidationError> {
22812257
Ok(())

0 commit comments

Comments
 (0)