mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 07:12:40 +02:00
Remove unused code
This commit is contained in:
parent
6bc83b5ea2
commit
f15d87fff1
2 changed files with 0 additions and 12 deletions
|
@ -417,9 +417,6 @@ void Connection::resetReceiveState() {
|
|||
// clear the loss list
|
||||
_lossList.clear();
|
||||
|
||||
// clear sync variables
|
||||
_connectionStart = p_high_resolution_clock::now();
|
||||
|
||||
// clear any pending received messages
|
||||
for (auto& pendingMessage : _pendingReceivedMessages) {
|
||||
_parentSocket->messageFailed(this, pendingMessage.first);
|
||||
|
@ -451,12 +448,6 @@ void PendingReceivedMessage::enqueuePacket(std::unique_ptr<Packet> packet) {
|
|||
"PendingReceivedMessage::enqueuePacket",
|
||||
"called with a packet that is not part of a message");
|
||||
|
||||
if (packet->getPacketPosition() == Packet::PacketPosition::LAST ||
|
||||
packet->getPacketPosition() == Packet::PacketPosition::ONLY) {
|
||||
_hasLastPacket = true;
|
||||
_numPackets = packet->getMessagePartNumber() + 1;
|
||||
}
|
||||
|
||||
// Insert into the packets list in sorted order. Because we generally expect to receive packets in order, begin
|
||||
// searching from the end of the list.
|
||||
auto messagePartNumber = packet->getMessagePartNumber();
|
||||
|
|
|
@ -43,9 +43,7 @@ public:
|
|||
std::list<std::unique_ptr<Packet>> _packets;
|
||||
|
||||
private:
|
||||
bool _hasLastPacket { false };
|
||||
Packet::MessagePartNumber _nextPartNumber = 0;
|
||||
unsigned int _numPackets { 0 };
|
||||
};
|
||||
|
||||
class Connection : public QObject {
|
||||
|
@ -112,7 +110,6 @@ private:
|
|||
bool _hasReceivedHandshakeACK { false }; // flag for receipt of handshake ACK from client
|
||||
bool _didRequestHandshake { false }; // flag for request of handshake from server
|
||||
|
||||
p_high_resolution_clock::time_point _connectionStart = p_high_resolution_clock::now(); // holds the time_point for creation of this connection
|
||||
p_high_resolution_clock::time_point _lastReceiveTime; // holds the last time we received anything from sender
|
||||
|
||||
SequenceNumber _initialSequenceNumber; // Randomized on Connection creation, identifies connection during re-connect requests
|
||||
|
|
Loading…
Reference in a new issue