Skip to content

Commit d240933

Browse files
committed
refactor: [#1309] remove unused code
1 parent ee2fc24 commit d240933

File tree

1 file changed

+0
-12
lines changed
  • packages/axum-http-tracker-server/src/v1/handlers

1 file changed

+0
-12
lines changed

packages/axum-http-tracker-server/src/v1/handlers/announce.rs

-12
Original file line numberDiff line numberDiff line change
@@ -158,18 +158,6 @@ fn build_response(announce_request: &Announce, announce_data: AnnounceData) -> R
158158
}
159159
}
160160

161-
#[must_use]
162-
pub fn map_to_aquatic_event(event: &Option<Event>) -> aquatic_udp_protocol::AnnounceEvent {
163-
match event {
164-
Some(event) => match &event {
165-
Event::Started => aquatic_udp_protocol::AnnounceEvent::Started,
166-
Event::Stopped => aquatic_udp_protocol::AnnounceEvent::Stopped,
167-
Event::Completed => aquatic_udp_protocol::AnnounceEvent::Completed,
168-
},
169-
None => aquatic_udp_protocol::AnnounceEvent::None,
170-
}
171-
}
172-
173161
#[must_use]
174162
pub fn map_to_torrust_event(event: &Option<Event>) -> AnnounceEvent {
175163
match event {

0 commit comments

Comments
 (0)