Skip to content

Commit a12dff7

Browse files
Anton Likhtarovmeta-codesync[bot]
authored andcommitted
Remove unused definitions
Summary: Changed all places where this was used, clean up Differential Revision: D87688044 fbshipit-source-id: 937d81e53c9cbb928e2b689b046eadf38a5cf0fe
1 parent 16d6e37 commit a12dff7

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

cachelib/benchmarks/BucketMutexBench.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ std::unordered_map<MutexType, std::pair<Stats, std::string>, EnumHash> stats = {
301301
};
302302

303303
BENCHMARK(SharedMutexBuckets) {
304-
runBench<facebook::cachelib::SharedMutexBuckets>(
304+
runBench<facebook::cachelib::RWBucketLocks<folly::SharedMutex>>(
305305
stats[MutexType::kSharedMutexBuckets].first);
306306
}
307307

cachelib/common/Mutex.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -388,9 +388,6 @@ class RWBucketLocks : public BaseBucketLocks<LockType, LockAlignmentType> {
388388
: WriteLockHolder(Base::getLock(args...), timeout);
389389
}
390390
};
391-
using TimedMutexRWBuckets =
392-
RWBucketLocks<folly::fibers::TimedRWMutex<folly::fibers::Baton>>;
393-
using SharedMutexBuckets = RWBucketLocks<folly::SharedMutex>;
394391

395392
// a spinning mutex appearing as a rw mutex
396393
using SpinBuckets = RWBucketLocks<RWMockLock>;

0 commit comments

Comments
 (0)