refactor: remove tr_torrent.magicNumber (#2927)

This commit is contained in:
Charles Kerr 2022-04-16 10:48:51 -05:00 committed by GitHub
parent bafb8d6495
commit 881860ac6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 6 deletions

View File

@ -590,9 +590,6 @@ public:
tr_swarm* swarm = nullptr;
// TODO: is this actually still needed?
int const magicNumber = MagicNumber;
std::optional<double> verify_progress;
tr_stat_errtype error = TR_STAT_OK;
@ -716,8 +713,6 @@ public:
/* Set the bandwidth group the torrent belongs to */
void setGroup(std::string_view groupName);
static auto constexpr MagicNumber = int{ 95549 };
tr_file_piece_map fpm_ = tr_file_piece_map{ metainfo_ };
tr_file_priorities file_priorities_{ &fpm_ };
tr_files_wanted files_wanted_{ &fpm_ };
@ -752,7 +747,7 @@ private:
constexpr bool tr_isTorrent(tr_torrent const* tor)
{
return tor != nullptr && tor->magicNumber == tr_torrent::MagicNumber && tr_isSession(tor->session);
return tor != nullptr && tr_isSession(tor->session);
}
/**