Commit 54fbaba6 authored by Guillaume Roguez's avatar Guillaume Roguez Committed by Nicolas Jager

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 <>
parent a922c9f1
......@@ -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;
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;
IceTransport::waitForInitialization(unsigned timeout)
......@@ -1053,14 +1042,6 @@ IceSocket::send(const unsigned char* buf, size_t len)
return ice_transport_->send(compId_, buf, len);
IceSocket::getNextPacketSize() const
if (!ice_transport_.get())
return -1;
return ice_transport_->getNextPacketSize(compId_);
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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment