(svn r7162) -CodeChange: disabled compilation of unused code (Darkvater)
authorKUDr
Wed, 15 Nov 2006 23:47:52 +0000
changeset 5093 40714fcd331b
parent 5092 98b8654aba27
child 5094 f089c2bb68e9
(svn r7162) -CodeChange: disabled compilation of unused code (Darkvater)
yapf/blob.hpp
yapf/crc32.hpp
--- a/yapf/blob.hpp	Wed Nov 15 21:57:47 2006 +0000
+++ b/yapf/blob.hpp	Wed Nov 15 23:47:52 2006 +0000
@@ -54,7 +54,9 @@
 	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); }
--- a/yapf/crc32.hpp	Wed Nov 15 21:57:47 2006 +0000
+++ b/yapf/crc32.hpp	Wed Nov 15 23:47:52 2006 +0000
@@ -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 @@
 		return Table;
 	}
 };
+#endif // 0
 
 #endif /* CRC32_HPP */