summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
Diffstat (limited to 'mysys')
-rw-r--r--mysys/checksum.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/mysys/checksum.c b/mysys/checksum.c
index 0cc9801c2b1..1d264b54321 100644
--- a/mysys/checksum.c
+++ b/mysys/checksum.c
@@ -32,17 +32,9 @@ ha_checksum my_crc_dbug_check= 1; /* Unlikely number */
ha_checksum my_checksum(ha_checksum crc, const uchar *pos, size_t length)
{
-#ifdef NOT_USED
- const uchar *end=pos+length;
- for ( ; pos != end ; pos++)
- crc=((crc << 8) + *((uchar*) pos)) + (crc >> (8*sizeof(ha_checksum)-8));
-#else
crc= (ha_checksum) crc32((uint)crc, pos, length);
-#endif /* NOT_USED */
DBUG_PRINT("info", ("crc: %lu", (ulong) crc));
-#ifndef DBUG_OFF
if (crc == my_crc_dbug_check)
my_debug_put_break_here();
-#endif
return crc;
}