Skip to content

Commit 07c27bd

Browse files
committed
Remove unused tag
1 parent 865c317 commit 07c27bd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/base/bittorrent/peer_blacklist.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void drop_connection(lt::peer_connection_handle ph)
6767

6868

6969
template<typename F>
70-
auto wrap_filter(F filter, const std::string& tag)
70+
auto wrap_filter(F filter)
7171
{
7272
return [=](const lt::peer_info& info, bool handshake, bool* stop_filtering) {
7373
bool matched = filter(info);
@@ -94,20 +94,20 @@ std::shared_ptr<lt::torrent_plugin> create_peer_action_plugin(
9494

9595
std::shared_ptr<lt::torrent_plugin> create_drop_bad_peers_plugin(lt::torrent_handle const& th, client_data)
9696
{
97-
return create_peer_action_plugin(th, wrap_filter(is_bad_peer, "bad peer"), drop_connection);
97+
return create_peer_action_plugin(th, wrap_filter(is_bad_peer), drop_connection);
9898
}
9999

100100
std::shared_ptr<lt::torrent_plugin> create_drop_unknown_peers_plugin(lt::torrent_handle const& th, client_data)
101101
{
102-
return create_peer_action_plugin(th, wrap_filter(is_unknown_peer, "unknown peer"), drop_connection);
102+
return create_peer_action_plugin(th, wrap_filter(is_unknown_peer), drop_connection);
103103
}
104104

105105
std::shared_ptr<lt::torrent_plugin> create_drop_offline_downloader_plugin(lt::torrent_handle const& th, client_data)
106106
{
107-
return create_peer_action_plugin(th, wrap_filter(is_offline_downloader, "offline downloader"), drop_connection);
107+
return create_peer_action_plugin(th, wrap_filter(is_offline_downloader), drop_connection);
108108
}
109109

110110
std::shared_ptr<lt::torrent_plugin> create_drop_bittorrent_media_player_plugin(lt::torrent_handle const& th, client_data)
111111
{
112-
return create_peer_action_plugin(th, wrap_filter(is_bittorrent_media_player, "bittorrent media player"), drop_connection);
112+
return create_peer_action_plugin(th, wrap_filter(is_bittorrent_media_player), drop_connection);
113113
}

0 commit comments

Comments
 (0)