@@ -67,7 +67,7 @@ void drop_connection(lt::peer_connection_handle ph)
67
67
68
68
69
69
template <typename F>
70
- auto wrap_filter (F filter, const std::string& tag )
70
+ auto wrap_filter (F filter)
71
71
{
72
72
return [=](const lt::peer_info& info, bool handshake, bool * stop_filtering) {
73
73
bool matched = filter (info);
@@ -94,20 +94,20 @@ std::shared_ptr<lt::torrent_plugin> create_peer_action_plugin(
94
94
95
95
std::shared_ptr<lt::torrent_plugin> create_drop_bad_peers_plugin (lt::torrent_handle const & th, client_data)
96
96
{
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);
98
98
}
99
99
100
100
std::shared_ptr<lt::torrent_plugin> create_drop_unknown_peers_plugin (lt::torrent_handle const & th, client_data)
101
101
{
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);
103
103
}
104
104
105
105
std::shared_ptr<lt::torrent_plugin> create_drop_offline_downloader_plugin (lt::torrent_handle const & th, client_data)
106
106
{
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);
108
108
}
109
109
110
110
std::shared_ptr<lt::torrent_plugin> create_drop_bittorrent_media_player_plugin (lt::torrent_handle const & th, client_data)
111
111
{
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);
113
113
}
0 commit comments