diff -U2 -r /var/lib/copr-rpmbuild/results/i2pd-git/upstream-unpacked/Source0/i2pd-openssl/libi2pd_client/TorrentsRPC.cpp /var/lib/copr-rpmbuild/results/i2pd-git/srpm-unpacked/i2pd-openssl.tar.gz-extract/i2pd-openssl/libi2pd_client/TorrentsRPC.cpp --- /var/lib/copr-rpmbuild/results/i2pd-git/upstream-unpacked/Source0/i2pd-openssl/libi2pd_client/TorrentsRPC.cpp 2026-09-16 01:43:44.000000000 +0000 +++ /var/lib/copr-rpmbuild/results/i2pd-git/srpm-unpacked/i2pd-openssl.tar.gz-extract/i2pd-openssl/libi2pd_client/TorrentsRPC.cpp 2026-09-16 01:21:31.000000000 +0000 @@ -51,5 +51,4 @@ boost::json::array GetTrackerStats (std::shared_ptr torrent) const; boost::json::array GetFiles (std::shared_ptr torrent) const; - static boost::json::array GetFileStats (std::shared_ptr torrent); static std::string_view RecognizeClientByPeerID (const PeerConnection::PeerID& peerID); @@ -360,6 +359,5 @@ { "webseedsSendingToUs", [](std::shared_ptr torrent) { return boost::json::value(0); } }, // not webseeds in i2p yet { "peers", &JSONRPCHandler::GetPeers }, - { "peersConnected", [](std::shared_ptr torrent) { return boost::json::value(torrent->GetConnections ().size ()); } }, - { "fileStats", &JSONRPCHandler::GetFileStats } + { "peersConnected", [](std::shared_ptr torrent) { return boost::json::value(torrent->GetConnections ().size ()); } } }; if (torrent) @@ -495,19 +493,4 @@ } return files; - } - - boost::json::array JSONRPCHandler::GetFileStats (std::shared_ptr torrent) - { - boost::json::array files; - auto filesCompleted = torrent->GetFilesCompleted (); - for (auto it: filesCompleted) - { - boost::json::object file; - file["bytesCompleted"] = it; - file["priority"] = 0; - file["wanted"] = true; - files.push_back (file); - } - return files; }