Skip to content

Commit

Permalink
refactor: remove KeyExpr::with_parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
wyfo committed Apr 25, 2024
1 parent 433907f commit 0353934
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions src/key_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,6 @@ impl KeyExpr {
self.0.concat(&other).into_pyres().map_into()
}

// TODO https://github.com/eclipse-zenoh/zenoh/pull/974
fn with_parameters(&self, parameters: String) -> Selector {
self.0.clone().with_owned_parameters(parameters).into()
}

// Cannot use `#[pyo3(from_py_with = "...")]`, see https://github.com/PyO3/pyo3/issues/4113
fn __eq__(&self, other: &Bound<PyAny>) -> PyResult<bool> {
Ok(self.0 == Self::from_py(other)?.0)
Expand Down
2 changes: 0 additions & 2 deletions zenoh/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,6 @@ class KeyExpr:
You should probably prefer KeyExpr::join as Zenoh may then take advantage of the hierachical separation it ins erts.
"""

def with_parameters(self, parameters: str) -> Selector: ...

_IntoKeyExpr = KeyExpr | str

@final
Expand Down

0 comments on commit 0353934

Please sign in to comment.