Skip to content
Snippets Groups Projects
Commit 54fbaba6 authored by Guillaume Roguez's avatar Guillaume Roguez Committed by Nicolas Jager
Browse files

ice: remove unused API


Remove IceTransport::getNextPacketSize() API and IceSocket one.
Unused and on-going to be deprecated API.

Change-Id: I6cdf72e81838411060e3cae636b156f309200e14
Reviewed-by: default avatarNicolas Jäger <nicolas.jager@savoirfairelinux.com>
parent a922c9f1
Branches
No related tags found
No related merge requests found
......@@ -46,7 +46,6 @@ class IceSocket
void close();
ssize_t recv(unsigned char* buf, size_t len);
ssize_t send(const unsigned char* buf, size_t len);
ssize_t getNextPacketSize() const;
ssize_t waitForData(unsigned int timeout);
void setOnRecv(IceRecvCb cb);
uint16_t getTransportOverhead();
......
......@@ -934,17 +934,6 @@ IceTransport::send(int comp_id, const unsigned char* buf, size_t len)
return len;
}
ssize_t
IceTransport::getNextPacketSize(int comp_id)
{
auto& io = compIO_[comp_id];
std::lock_guard<std::mutex> lk(io.mutex);
if (io.queue.empty()) {
return 0;
}
return io.queue.front().datalen;
}
int
IceTransport::waitForInitialization(unsigned timeout)
{
......@@ -1053,14 +1042,6 @@ IceSocket::send(const unsigned char* buf, size_t len)
return ice_transport_->send(compId_, buf, len);
}
ssize_t
IceSocket::getNextPacketSize() const
{
if (!ice_transport_.get())
return -1;
return ice_transport_->getNextPacketSize(compId_);
}
ssize_t
IceSocket::waitForData(unsigned int timeout)
{
......
......@@ -200,8 +200,6 @@ class IceTransport {
ssize_t send(int comp_id, const unsigned char* buf, size_t len);
ssize_t getNextPacketSize(int comp_id);
int waitForInitialization(unsigned timeout);
int waitForNegotiation(unsigned timeout);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment