Skip to content
Snippets Groups Projects
Commit bf11101c authored by Rafaël Carré's avatar Rafaël Carré
Browse files

RingBuffer::Put() : remove unused return value

parent 7ff25e6f
No related branches found
No related tags found
No related merge requests found
......@@ -180,13 +180,12 @@ RingBuffer::getNbReadPointer()
//
// This one puts some data inside the ring buffer.
int
void
RingBuffer::Put (void* buffer, int toCopy)
{
int len = putLen();
if (toCopy > mBufferSize - len)
toCopy = mBufferSize - len;
int copied = toCopy;
unsigned char *src = (unsigned char *) buffer;
......@@ -204,9 +203,6 @@ RingBuffer::Put (void* buffer, int toCopy)
}
mEnd = pos;
// How many items copied.
return copied;
}
//
......
......@@ -98,9 +98,8 @@ class RingBuffer
* Write data in the ring buffer
* @param buffer Data to copied
* @param toCopy Number of bytes to copy
* @return int Number of bytes copied
*/
int Put (void* buffer, int toCopy);
void Put (void* buffer, int toCopy);
/**
* To get how much space is available in the buffer to read in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment