Skip to content

Commit

Permalink
fix: remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
wyfo committed Jun 10, 2024
1 parent 631e7dd commit 2720fe8
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions zenoh/src/api/publisher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@ impl<'a> Publisher<'a> {
pub fn matching_listener(&self) -> MatchingListenerBuilder<'_, DefaultHandler> {
MatchingListenerBuilder {
publisher: PublisherRef::Borrow(self),
background: false,
handler: DefaultHandler::default(),
}
}
Expand Down Expand Up @@ -451,7 +450,6 @@ impl PublisherDeclarations for std::sync::Arc<Publisher<'static>> {
fn matching_listener(&self) -> MatchingListenerBuilder<'static, DefaultHandler> {
MatchingListenerBuilder {
publisher: PublisherRef::Shared(self.clone()),
background: false,
handler: DefaultHandler::default(),
}
}
Expand Down Expand Up @@ -775,7 +773,6 @@ impl MatchingStatus {
#[derive(Debug)]
pub struct MatchingListenerBuilder<'a, Handler> {
pub(crate) publisher: PublisherRef<'a>,
pub(crate) background: bool,
pub handler: Handler,
}

Expand Down Expand Up @@ -812,12 +809,10 @@ impl<'a> MatchingListenerBuilder<'a, DefaultHandler> {
{
let MatchingListenerBuilder {
publisher,
background,
handler: _,
} = self;
MatchingListenerBuilder {
publisher,
background,
handler: callback,
}
}
Expand Down Expand Up @@ -884,14 +879,9 @@ impl<'a> MatchingListenerBuilder<'a, DefaultHandler> {
{
let MatchingListenerBuilder {
publisher,
background,
handler: _,
} = self;
MatchingListenerBuilder {
publisher,
background,
handler,
}
MatchingListenerBuilder { publisher, handler }
}
}

Expand Down

0 comments on commit 2720fe8

Please sign in to comment.