remove unused member of alert_manager

This commit is contained in:
Arvid Norberg 2013-07-19 23:31:44 +00:00
parent b8143b46d3
commit 3c7503beaa
3 changed files with 3 additions and 6 deletions

View File

@ -35,7 +35,6 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/config.hpp" #include "libtorrent/config.hpp"
#include "libtorrent/alert.hpp" #include "libtorrent/alert.hpp"
#include "libtorrent/io_service_fwd.hpp"
#include "libtorrent/thread.hpp" #include "libtorrent/thread.hpp"
#include <boost/function/function1.hpp> #include <boost/function/function1.hpp>
@ -51,7 +50,7 @@ namespace libtorrent {
class TORRENT_EXTRA_EXPORT alert_manager class TORRENT_EXTRA_EXPORT alert_manager
{ {
public: public:
alert_manager(io_service& ios, int queue_limit alert_manager(int queue_limit
, boost::uint32_t alert_mask = alert::error_notification); , boost::uint32_t alert_mask = alert::error_notification);
~alert_manager(); ~alert_manager();
@ -102,7 +101,6 @@ namespace libtorrent {
boost::uint32_t m_alert_mask; boost::uint32_t m_alert_mask;
size_t m_queue_size_limit; size_t m_queue_size_limit;
boost::function<void(std::auto_ptr<alert>)> m_dispatch; boost::function<void(std::auto_ptr<alert>)> m_dispatch;
io_service& m_ios;
#ifndef TORRENT_DISABLE_EXTENSIONS #ifndef TORRENT_DISABLE_EXTENSIONS
typedef std::list<boost::shared_ptr<plugin> > ses_extension_list_t; typedef std::list<boost::shared_ptr<plugin> > ses_extension_list_t;

View File

@ -41,10 +41,9 @@ POSSIBILITY OF SUCH DAMAGE.
namespace libtorrent namespace libtorrent
{ {
alert_manager::alert_manager(io_service& ios, int queue_limit, boost::uint32_t alert_mask) alert_manager::alert_manager(int queue_limit, boost::uint32_t alert_mask)
: m_alert_mask(alert_mask) : m_alert_mask(alert_mask)
, m_queue_size_limit(queue_limit) , m_queue_size_limit(queue_limit)
, m_ios(ios)
{} {}
alert_manager::~alert_manager() alert_manager::~alert_manager()

View File

@ -610,7 +610,7 @@ namespace aux {
#ifdef TORRENT_USE_OPENSSL #ifdef TORRENT_USE_OPENSSL
, m_ssl_ctx(m_io_service, asio::ssl::context::sslv23) , m_ssl_ctx(m_io_service, asio::ssl::context::sslv23)
#endif #endif
, m_alerts(m_io_service, m_settings.alert_queue_size, alert_mask) , m_alerts(m_settings.alert_queue_size, alert_mask)
, m_disk_thread(m_io_service, boost::bind(&session_impl::on_disk_queue, this), m_files) , m_disk_thread(m_io_service, boost::bind(&session_impl::on_disk_queue, this), m_files)
, m_half_open(m_io_service) , m_half_open(m_io_service)
, m_download_rate(peer_connection::download_channel) , m_download_rate(peer_connection::download_channel)