Disabled some unneeded checksum code (cbuf is still "abused" in our ports
and pipefs implementation, but was originally thought for a network stack). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10028 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -54,7 +54,7 @@ static uint8 *sBitmap;
|
|||||||
|
|
||||||
|
|
||||||
/* Declarations we need that aren't in header files */
|
/* Declarations we need that aren't in header files */
|
||||||
uint16 ones_sum16(uint32, const void *, int);
|
//uint16 ones_sum16(uint32, const void *, int);
|
||||||
|
|
||||||
|
|
||||||
// private part of the API implementation
|
// private part of the API implementation
|
||||||
@@ -761,7 +761,7 @@ cbuf_is_contig_region(cbuf *buffer, size_t start, size_t end)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
uint16
|
uint16
|
||||||
cbuf_ones_cksum16(cbuf *buffer, size_t offset, size_t length)
|
cbuf_ones_cksum16(cbuf *buffer, size_t offset, size_t length)
|
||||||
{
|
{
|
||||||
@@ -806,7 +806,7 @@ cbuf_ones_cksum16(cbuf *buffer, size_t offset, size_t length)
|
|||||||
|
|
||||||
return ~sum;
|
return ~sum;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/** Truncates the head of the buffer chain about truncBytes.
|
/** Truncates the head of the buffer chain about truncBytes.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user