Skip to content

Commit

Permalink
Removed obsolete 'system.hash.read_ahead', 'system.hash.interval' and…
Browse files Browse the repository at this point in the history
… 'system.hash.max_tries'.
  • Loading branch information
rakshasa committed Jan 9, 2012
1 parent 18d51a6 commit 222018e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
9 changes: 0 additions & 9 deletions src/command_network.cc
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ apply_tos(const torrent::Object::string_type& arg) {
return torrent::Object();
}

torrent::Object apply_hash_read_ahead(int arg) { torrent::set_hash_read_ahead(arg << 20); return torrent::Object(); }
torrent::Object apply_hash_interval(int arg) { torrent::set_hash_interval(arg * 1000); return torrent::Object(); }
torrent::Object apply_encoding_list(const std::string& arg) { torrent::encoding_list()->push_back(arg); return torrent::Object(); }

torrent::File*
Expand Down Expand Up @@ -305,11 +303,4 @@ initialize_command_network() {
CMD2_ANY_STRING ("network.xmlrpc.dialect.set", std::bind(&apply_xmlrpc_dialect, std::placeholders::_2));
CMD2_ANY ("network.xmlrpc.size_limit", std::bind(&rpc::XmlRpc::size_limit));
CMD2_ANY_VALUE_V ("network.xmlrpc.size_limit.set", std::bind(&rpc::XmlRpc::set_size_limit, std::placeholders::_2));

CMD2_ANY ("system.hash.read_ahead", std::bind(&torrent::hash_read_ahead));
CMD2_ANY_VALUE_V ("system.hash.read_ahead.set", std::bind(&apply_hash_read_ahead, std::placeholders::_2));
CMD2_ANY ("system.hash.interval", std::bind(&torrent::hash_interval));
CMD2_ANY_VALUE_V ("system.hash.interval.set", std::bind(&apply_hash_interval, std::placeholders::_2));
CMD2_ANY ("system.hash.max_tries", std::bind(&torrent::hash_max_tries));
CMD2_ANY_VALUE_V ("system.hash.max_tries.set", std::bind(&torrent::set_hash_max_tries, std::placeholders::_2));
}
12 changes: 0 additions & 12 deletions src/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -636,18 +636,6 @@ main(int argc, char** argv) {
CMD2_REDIRECT ("get_session_on_completion", "session.on_completion");
CMD2_REDIRECT_GENERIC("set_session_on_completion", "session.on_completion.set");

CMD2_REDIRECT ("hash_read_ahead", "system.hash.read_ahead.set");
CMD2_REDIRECT ("get_hash_read_ahead", "system.hash.read_ahead");
CMD2_REDIRECT_GENERIC("set_hash_read_ahead", "system.hash.read_ahead.set");

CMD2_REDIRECT ("hash_interval", "system.hash.interval.set");
CMD2_REDIRECT ("get_hash_interval", "system.hash.interval");
CMD2_REDIRECT_GENERIC("set_hash_interval", "system.hash.interval.set");

CMD2_REDIRECT ("hash_max_tries", "system.hash.max_tries.set");
CMD2_REDIRECT ("get_hash_max_tries", "system.hash.max_tries");
CMD2_REDIRECT_GENERIC("set_hash_max_tries", "system.hash.max_tries.set");

CMD2_REDIRECT ("check_hash", "pieces.hash.on_completion.set");
CMD2_REDIRECT ("get_check_hash", "pieces.hash.on_completion");
CMD2_REDIRECT_GENERIC("set_check_hash", "pieces.hash.on_completion.set");
Expand Down

0 comments on commit 222018e

Please sign in to comment.