Skip to content

Commit

Permalink
Remove unused parameter from assignActiveConnection()
Browse files Browse the repository at this point in the history
  • Loading branch information
halfgaar committed Nov 9, 2024
1 parent 7732277 commit c8daebf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void Session::assignActiveConnection(const std::shared_ptr<Client> &client)
}

void Session::assignActiveConnection(const std::shared_ptr<Session> &thisSession, const std::shared_ptr<Client> &client,
uint16_t clientReceiveMax, uint32_t sessionExpiryInterval, bool clean_start, ProtocolVersion protocol_version)
uint16_t clientReceiveMax, uint32_t sessionExpiryInterval, bool clean_start)
{
assert(this == thisSession.get());

Expand Down
2 changes: 1 addition & 1 deletion session.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class Session
std::shared_ptr<Client> makeSharedClient();
void assignActiveConnection(const std::shared_ptr<Client> &client);
void assignActiveConnection(const std::shared_ptr<Session> &thisSession, const std::shared_ptr<Client> &client,
uint16_t clientReceiveMax, uint32_t sessionExpiryInterval, bool clean_start, ProtocolVersion protocol_version);
uint16_t clientReceiveMax, uint32_t sessionExpiryInterval, bool clean_start);
PacketDropReason writePacket(PublishCopyFactory &copyFactory, const uint8_t max_qos, bool retainAsPublished);
bool clearQosMessage(uint16_t packet_id, bool qosHandshakeEnds);
void sendAllPendingQosData();
Expand Down
2 changes: 1 addition & 1 deletion subscriptionstore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ void SubscriptionStore::registerClientAndKickExistingOne(std::shared_ptr<Client>
}
}

session->assignActiveConnection(session, client, clientReceiveMax, sessionExpiryInterval, clean_start, client->getProtocolVersion());
session->assignActiveConnection(session, client, clientReceiveMax, sessionExpiryInterval, clean_start);
}

/**
Expand Down

0 comments on commit c8daebf

Please sign in to comment.