exclude print_pieces() from build unless PICKER_LOG is enabled

This commit is contained in:
Arvid Norberg 2008-07-30 06:39:37 +00:00
parent d40b8df393
commit eccba2072c
1 changed files with 2 additions and 0 deletions

View File

@ -222,6 +222,7 @@ namespace libtorrent
} }
} }
#ifdef TORRENT_PICKER_LOG
void piece_picker::print_pieces() const void piece_picker::print_pieces() const
{ {
for (std::vector<int>::const_iterator i = m_priority_boundries.begin() for (std::vector<int>::const_iterator i = m_priority_boundries.begin()
@ -245,6 +246,7 @@ namespace libtorrent
} }
std::cerr << std::endl; std::cerr << std::endl;
} }
#endif
void piece_picker::check_invariant(const torrent* t) const void piece_picker::check_invariant(const torrent* t) const
{ {