Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidma committed May 1, 2024
1 parent 68e2de5 commit 222a037
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 51 deletions.
20 changes: 0 additions & 20 deletions crates/communication/src/server/outputs/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -388,26 +388,6 @@ mod tests {
}
}

// impl<T> PathDeserialize for OutputsFake<T>
// where
// for<'a> T: Deserialize<'a> + Serialize,
// {
// fn deserialize_path<'de, D>(
// &mut self,
// path: &str,
// deserializer: D,
// ) -> Result<(), deserialize::Error<D::Error>>
// where
// D: Deserializer<'de>,
// {
// self.existing_fields.insert(
// path.to_string(),
// T::deserialize(deserializer).map_err(deserialize::Error::DeserializationFailed)?,
// );
// Ok(())
// }
// }

impl<T> PathIntrospect for OutputsFake<T> {
fn extend_with_fields(fields: &mut BTreeSet<String>, _prefix: &str) {
fields.insert("a".to_string());
Expand Down
9 changes: 0 additions & 9 deletions crates/communication/src/server/parameters/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,15 +241,6 @@ mod tests {
}
}

// impl<T> PathIntrospect for ParametersFake<T>
// {
// fn extend_with_fields(fields: &mut BTreeSet<String>, _prefix: &str) {
// fields.insert("a".to_string());
// fields.insert("a.b".to_string());
// fields.insert("a.b.c".to_string());
// }
// }

#[tokio::test]
async fn update_request_writes_parameters_and_notifies() {
let path = "a.b.c".to_string();
Expand Down
19 changes: 0 additions & 19 deletions crates/communication/src/server/parameters/subscriptions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,25 +377,6 @@ mod tests {
}
}

// fn deserialize_path<'de, D>(
// &mut self,
// path: &str,
// deserializer: D,
// ) -> Result<(), Error<D::Error>>
// where
// D: Deserializer<'de>,
// {
// self.existing_fields.insert(
// path.to_string(),
// T::deserialize(deserializer).map_err(Error::DeserializationFailed)?,
// );
// Ok(())
// }
//
// fn exists(field_path: &str) -> bool {
// field_path == "a.b.c"
// }
//
impl<T> PathIntrospect for ParametersFake<T> {
fn extend_with_fields(fields: &mut BTreeSet<String>, _prefix: &str) {
fields.insert("a".to_string());
Expand Down
2 changes: 0 additions & 2 deletions crates/path_serde/src/error.rs

This file was deleted.

1 change: 0 additions & 1 deletion crates/path_serde/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ pub use path_serde_derive::{PathDeserialize, PathIntrospect, PathSerialize};
pub use serialize::PathSerialize;

pub mod deserialize;
pub mod error;
mod implementation;
pub mod introspect;
mod not_supported;
Expand Down

0 comments on commit 222a037

Please sign in to comment.