From e2ac32e7cf480358a342b42813cbc0a349f2281d Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 14 Mar 2009 09:25:26 +0000 Subject: [PATCH] remove unused members and fix warning --- include/libtorrent/disk_io_thread.hpp | 2 -- include/libtorrent/torrent_info.hpp | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/include/libtorrent/disk_io_thread.hpp b/include/libtorrent/disk_io_thread.hpp index b275ca535..4e45d5687 100644 --- a/include/libtorrent/disk_io_thread.hpp +++ b/include/libtorrent/disk_io_thread.hpp @@ -313,8 +313,6 @@ namespace libtorrent #ifdef TORRENT_DISK_STATS std::ofstream m_log; #endif - size_type m_writes; - size_type m_blocks_written; io_service& m_ios; diff --git a/include/libtorrent/torrent_info.hpp b/include/libtorrent/torrent_info.hpp index 4b53c1640..16838888f 100644 --- a/include/libtorrent/torrent_info.hpp +++ b/include/libtorrent/torrent_info.hpp @@ -257,7 +257,7 @@ namespace libtorrent TORRENT_ASSERT(index < m_files.num_pieces()); if (is_merkle_torrent()) { - TORRENT_ASSERT(index < m_merkle_tree.size() - m_merkle_first_leaf); + TORRENT_ASSERT(index < int(m_merkle_tree.size()) - m_merkle_first_leaf); return (const char*)&m_merkle_tree[m_merkle_first_leaf + index][0]; } else