summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorunknown <serg@janus.mylan>2008-02-05 14:19:53 +0100
committerunknown <serg@janus.mylan>2008-02-05 14:19:53 +0100
commit7e54b96791b7233896f73d05e79146a1c612bc9b (patch)
tree4a7df64c2b741a5c2cff9da54160f0163d733232 /mysys
parentcd6a090a78882ba1f5262ea79c8020740c2ad5d1 (diff)
downloadmariadb-git-7e54b96791b7233896f73d05e79146a1c612bc9b.tar.gz
cleanup
dbug/dbug.c: dbug naming conventions include/my_dbug.h: unused function
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;
}