summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yapf/blob.hpp2
-rw-r--r--yapf/crc32.hpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/yapf/blob.hpp b/yapf/blob.hpp
index 41d22315f..f05e6a77d 100644
--- a/yapf/blob.hpp
+++ b/yapf/blob.hpp
@@ -54,7 +54,9 @@ public:
FORCEINLINE int MaxRawSize() const { return Hdr().m_max_size; };
FORCEINLINE int8* RawData() { return ptr_u.m_pData; }
FORCEINLINE const int8* RawData() const { return ptr_u.m_pData; }
+#if 0 // reenable when needed
FORCEINLINE uint32 Crc32() const {return CCrc32::Calc(RawData(), RawSize());}
+#endif //0
FORCEINLINE void Clear() { RawSizeRef() = 0; }
FORCEINLINE void Free() { if (MaxRawSize() > 0) {RawFree(&Hdr()); InitEmpty();} }
FORCEINLINE void CopyFrom(const CBlobBaseSimple& src) { Clear(); AppendRaw(src); }
diff --git a/yapf/crc32.hpp b/yapf/crc32.hpp
index 6cfe0c2bf..10e9a7ac4 100644
--- a/yapf/crc32.hpp
+++ b/yapf/crc32.hpp
@@ -3,6 +3,7 @@
#ifndef CRC32_HPP
#define CRC32_HPP
+#if 0 // reenable when needed
struct CCrc32
{
static uint32 Calc(const void *pBuffer, int nCount)
@@ -59,5 +60,6 @@ struct CCrc32
return Table;
}
};
+#endif // 0
#endif /* CRC32_HPP */