mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r7162) -CodeChange: disabled compilation of unused code (Darkvater)
This commit is contained in:
parent
41733bacb0
commit
e18c9f384d
@ -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); }
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user