void remove_web_seed(std::string const& url, web_seed_entry::type_t type) { std::list<web_seed_entry>::iterator i = std::find_if(m_web_seeds.begin(), m_web_seeds.end() , (boost::bind(&web_seed_entry::url, _1) == url && boost::bind(&web_seed_entry::type, _1) == type)); if (i != m_web_seeds.end()) remove_web_seed(i); }
void torrent_handle::remove_http_seed(std::string const& url) const { INVARIANT_CHECK; TORRENT_FORWARD(remove_web_seed(url, web_seed_entry::http_seed)); }