diff options
author | Chris Mumford <cmumford@chromium.org> | 2014-05-01 13:43:12 -0700 |
---|---|---|
committer | Chris Mumford <cmumford@chromium.org> | 2014-05-01 13:44:03 -0700 |
commit | e353fbc7ea81f12a5694991b708f8f45343594b1 (patch) | |
tree | 93f820975442c250855c58bb7620b522a494c944 /db/version_set.cc | |
parent | 269fc6ca9416129248db5ca57050cd5d39d177c8 (diff) | |
download | leveldb-e353fbc7ea81f12a5694991b708f8f45343594b1.tar.gz |
- Cleanup: delete unused IntSetToString
It was added in http://cr/19491949 (and was referenced at the time).
The last reference was removed in http://cr/19507363.
This fixes warning/error with pre-release crosstoolv18:
'std::string leveldb::{anonymous}::IntSetToString(const std::set<long unsigned int>&)' defined but not used [-Werror=unused-function]
- Added arm64 and and armv7s to IOS build as suggested on leveldb mailing list.
- Changed local variable type from int to size_t
This eliminates compiler warning/error and resolves
https://code.google.com/p/leveldb/issues/detail?id=140
Diffstat (limited to 'db/version_set.cc')
-rw-r--r-- | db/version_set.cc | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/db/version_set.cc b/db/version_set.cc index 517edd3..aa83df5 100644 --- a/db/version_set.cc +++ b/db/version_set.cc @@ -54,20 +54,6 @@ static int64_t TotalFileSize(const std::vector<FileMetaData*>& files) { return sum; } -namespace { -std::string IntSetToString(const std::set<uint64_t>& s) { - std::string result = "{"; - for (std::set<uint64_t>::const_iterator it = s.begin(); - it != s.end(); - ++it) { - result += (result.size() > 1) ? "," : ""; - result += NumberToString(*it); - } - result += "}"; - return result; -} -} // namespace - Version::~Version() { assert(refs_ == 0); |