From e18c9f384d030fea05cffbbd66ba2d78297bf641 Mon Sep 17 00:00:00 2001 From: KUDr Date: Wed, 15 Nov 2006 23:47:52 +0000 Subject: (svn r7162) -CodeChange: disabled compilation of unused code (Darkvater) --- yapf/blob.hpp | 2 ++ yapf/crc32.hpp | 2 ++ 2 files changed, 4 insertions(+) (limited to 'yapf') 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 */ -- cgit v1.2.3-70-g09d2