Mercurial > hg > openttd
changeset 5093:cdde161c4ede draft
(svn r7162) -CodeChange: disabled compilation of unused code (Darkvater)
author | KUDr <KUDr@openttd.org> |
---|---|
date | Wed, 15 Nov 2006 23:47:52 +0000 |
parents | 58260e7a15ba |
children | aebd080d3753 |
files | yapf/blob.hpp yapf/crc32.hpp |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/yapf/blob.hpp +++ b/yapf/blob.hpp @@ -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); }