removed some invariant checks that are expensive

This commit is contained in:
Arvid Norberg 2007-08-08 22:38:30 +00:00
parent 4d04588def
commit 3f5204aff6
1 changed files with 2 additions and 2 deletions

View File

@ -1109,7 +1109,7 @@ namespace libtorrent
void torrent::set_piece_priority(int index, int priority) void torrent::set_piece_priority(int index, int priority)
{ {
INVARIANT_CHECK; // INVARIANT_CHECK;
assert(valid_metadata()); assert(valid_metadata());
if (is_seed()) return; if (is_seed()) return;
@ -1125,7 +1125,7 @@ namespace libtorrent
int torrent::piece_priority(int index) const int torrent::piece_priority(int index) const
{ {
INVARIANT_CHECK; // INVARIANT_CHECK;
assert(valid_metadata()); assert(valid_metadata());
if (is_seed()) return 1; if (is_seed()) return 1;