revert and do what the previous check-in was supposed to do

This commit is contained in:
Arvid Norberg 2009-05-22 03:36:05 +00:00
parent 065c33969a
commit 292c7f61a1
1 changed files with 4 additions and 2 deletions

View File

@ -830,9 +830,7 @@ namespace libtorrent
void piece_picker::dec_refcount_all()
{
#ifdef TORRENT_EXPENSIVE_INVARIANT_CHECKS
TORRENT_PIECE_PICKER_INVARIANT_CHECK;
#endif
if (m_seeds > 0)
{
@ -893,7 +891,9 @@ namespace libtorrent
void piece_picker::inc_refcount(bitfield const& bitmask)
{
#ifdef TORRENT_EXPENSIVE_INVARIANT_CHECKS
TORRENT_PIECE_PICKER_INVARIANT_CHECK;
#endif
TORRENT_ASSERT(bitmask.size() == m_piece_map.size());
int index = 0;
@ -913,7 +913,9 @@ namespace libtorrent
void piece_picker::dec_refcount(bitfield const& bitmask)
{
#ifdef TORRENT_EXPENSIVE_INVARIANT_CHECKS
TORRENT_PIECE_PICKER_INVARIANT_CHECK;
#endif
TORRENT_ASSERT(bitmask.size() == m_piece_map.size());
int index = 0;