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

@@ -126,10 +126,6 @@ extern "C" {
namespace {
namespace File {
void Init() { }
} // namespace File
namespace file {
int Defaults() { return 0; }
@@ -162,9 +158,8 @@ namespace file {
return DummyStatus();
}
DummyStatus SetContents(const std::string& filename,
const std::string& str,
int unused) {
inline DummyStatus SetContents(
const std::string& filename, const std::string& str, int unused) {
FILE* fp = fopen(filename.c_str(), "wb");
if (fp == NULL) {
perror(filename.c_str());
@@ -468,7 +463,7 @@ class ZLib {
DECLARE_bool(run_microbenchmarks);
static void RunSpecifiedBenchmarks() {
static inline void RunSpecifiedBenchmarks() {
if (!FLAGS_run_microbenchmarks) {
return;
}
@@ -516,10 +511,6 @@ static inline int RUN_ALL_TESTS() {
// For main().
namespace snappy {
static void CompressFile(const char* fname);
static void UncompressFile(const char* fname);
static void MeasureFile(const char* fname);
// Logging.
#define LOG(level) LogMessage()
@@ -591,10 +582,6 @@ class LogMessageVoidify {
#define CHECK_GT(a, b) CRASH_UNLESS((a) > (b))
#define CHECK_OK(cond) (cond).CheckSuccess()
} // namespace
using snappy::CompressFile;
using snappy::UncompressFile;
using snappy::MeasureFile;
} // namespace snappy
#endif // THIRD_PARTY_SNAPPY_OPENSOURCE_SNAPPY_TEST_H_