summaryrefslogtreecommitdiff
path: root/yapf
diff options
context:
space:
mode:
authorKUDr <KUDr@openttd.org>2006-11-15 23:47:52 +0000
committerKUDr <KUDr@openttd.org>2006-11-15 23:47:52 +0000
commite18c9f384d030fea05cffbbd66ba2d78297bf641 (patch)
tree0e42a811350874af276537ab4c56712f497079b4 /yapf
parent41733bacb0fc835e50c274334f2aa90e6e6fb9be (diff)
downloadopenttd-e18c9f384d030fea05cffbbd66ba2d78297bf641.tar.xz
(svn r7162) -CodeChange: disabled compilation of unused code (Darkvater)
Diffstat (limited to 'yapf')
-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 */