mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
Fix unused variables warnning
This commit is contained in:
@@ -10,8 +10,6 @@
|
||||
|
||||
using nlohmann::json;
|
||||
|
||||
static PeerConnection *peer_connection;
|
||||
|
||||
PeerPtr *CreatePeer(const Params *params) {
|
||||
PeerPtr *peer_ptr = new PeerPtr;
|
||||
peer_ptr->peer_connection = new PeerConnection();
|
||||
@@ -46,8 +44,7 @@ int CreateConnection(PeerPtr *peer_ptr, const char *transmission_id,
|
||||
LOG_INFO("CreateConnection [{}] with password [{}]", transmission_id,
|
||||
password);
|
||||
|
||||
return peer_ptr->peer_connection->Create(peer_ptr->pc_params, transmission_id,
|
||||
password);
|
||||
return peer_ptr->peer_connection->Create(transmission_id, password);
|
||||
}
|
||||
|
||||
int JoinConnection(PeerPtr *peer_ptr, const char *transmission_id,
|
||||
@@ -57,8 +54,7 @@ int JoinConnection(PeerPtr *peer_ptr, const char *transmission_id,
|
||||
return -1;
|
||||
}
|
||||
|
||||
peer_ptr->peer_connection->Join(peer_ptr->pc_params, transmission_id,
|
||||
password);
|
||||
peer_ptr->peer_connection->Join(transmission_id, password);
|
||||
LOG_INFO("JoinConnection[{}] with password [{}]", transmission_id, password);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user