Clean up unused function warnings in snappy.

This commit is contained in:
costan
2017-03-17 13:43:18 -07:00
committed by Victor Costan
parent 8b60aac4fd
commit ed3b7b242b
4 changed files with 16 additions and 29 deletions

View File

@@ -47,7 +47,6 @@ using internal::COPY_2_BYTE_OFFSET;
using internal::LITERAL;
using internal::char_table;
using internal::kMaximumTagLength;
using internal::wordmask;
// Any hash function will produce a valid compressed bitstream, but a good
// hash function reduces the number of collisions and thus yields better
@@ -575,6 +574,14 @@ static inline void Report(const char *algorithm, size_t compressed_size,
// bool TryFastAppend(const char* ip, size_t available, size_t length);
// };
namespace internal {
// Mapping from i in range [0,4] to a mask to extract the bottom 8*i bits
static const uint32 wordmask[] = {
0u, 0xffu, 0xffffu, 0xffffffu, 0xffffffffu
};
} // end namespace internal
// Helper class for decompression
class SnappyDecompressor {