remove unused infohash member in create_torrent

This commit is contained in:
Steven Siloti 2018-01-09 13:49:56 -08:00 committed by Arvid Norberg
parent 5a772325a0
commit 5f25912694
2 changed files with 0 additions and 7 deletions

View File

@ -321,11 +321,6 @@ namespace libtorrent {
// dht nodes to add to the routing table/bootstrap from
std::vector<std::pair<std::string, int>> m_nodes;
// the hash that identifies this torrent
// is mutable because it's calculated
// lazily
mutable sha1_hash m_info_hash;
// if a creation date is found in the torrent file
// this will be set to that, otherwise it'll be
// 1970, Jan 1

View File

@ -425,7 +425,6 @@ namespace {
boost::shared_array<char> const info = ti.metadata();
int const size = ti.metadata_size();
m_info_dict.preformatted().assign(&info[0], &info[0] + size);
m_info_hash = ti.info_hash();
}
entry create_torrent::generate() const
@ -670,7 +669,6 @@ namespace {
std::vector<char> buf;
bencode(std::back_inserter(buf), info);
m_info_hash = hasher(buf).final();
return dict;
}