diff options
author | costan <costan@google.com> | 2017-03-17 13:43:18 -0700 |
---|---|---|
committer | Victor Costan <pwnall@chromium.org> | 2017-03-17 13:59:03 -0700 |
commit | ed3b7b242bd24de2ca6750c73f64bee5b7505944 (patch) | |
tree | 0ac3782bf38843a35f88bd592b61ec1995fee54d /snappy-test.h | |
parent | 8b60aac4fdbbb8f1dcce778accb5c04136c3a908 (diff) | |
download | snappy-git-ed3b7b242bd24de2ca6750c73f64bee5b7505944.tar.gz |
Clean up unused function warnings in snappy.
Diffstat (limited to 'snappy-test.h')
-rw-r--r-- | snappy-test.h | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/snappy-test.h b/snappy-test.h index b251e66..7b39a8c 100644 --- a/snappy-test.h +++ b/snappy-test.h @@ -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_ |