Removed deprecate tracker focused_index function calls.

This commit is contained in:
Jari Sundell
2011-11-04 02:24:57 +09:00
parent 47c03c8717
commit ed6182589a
2 changed files with 3 additions and 3 deletions
+2 -1
View File
@@ -800,7 +800,8 @@ initialize_command_download() {
CMD2_DL_V ("d.tracker_announce", std::bind(&torrent::Download::manual_request, CMD2_BIND_DL, false));
CMD2_DL ("d.tracker_numwant", std::bind(&torrent::TrackerList::numwant, CMD2_BIND_TL));
CMD2_DL_VALUE_V ("d.tracker_numwant.set", std::bind(&torrent::TrackerList::set_numwant, CMD2_BIND_TL, std::placeholders::_2));
CMD2_DL ("d.tracker_focus", std::bind(&torrent::TrackerList::focus_index, CMD2_BIND_TL));
// TODO: Deprecate 'd.tracker_focus'.
CMD2_DL ("d.tracker_focus", std::bind(&core::Download::tracker_list_size, std::placeholders::_1));
CMD2_DL ("d.tracker_size", std::bind(&core::Download::tracker_list_size, std::placeholders::_1));
CMD2_DL ("d.directory", CMD2_ON_FL(root_dir));
+1 -2
View File
@@ -89,9 +89,8 @@ WindowTrackerList::redraw() {
tracker->url().c_str());
if (pos < m_canvas->height())
m_canvas->print(4, pos++, "Id: %s Focus: %s Failed: %u/%u Enabled: %s Open: %s S/L: %u/%u",
m_canvas->print(4, pos++, "Id: %s Failed: %u/%u Enabled: %s Open: %s S/L: %u/%u",
rak::copy_escape_html(tracker->tracker_id()).c_str(),
range.first == tl->focus_index() ? "yes" : " no",
tracker->failed_counter(),
tracker->success_counter(),
tracker->is_usable() ? "yes" : tracker->is_enabled() ? "off" : " no",