forked from premiere/premiere-libtorrent
remove unused infohash member in create_torrent
This commit is contained in:
parent
5a772325a0
commit
5f25912694
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue