Commit fa452bbf authored by generatedunixname89002005287564's avatar generatedunixname89002005287564 Committed by Facebook Github Bot

Remove dead includes in folly/synchronization

Reviewed By: yfeldblum

Differential Revision: D18298354

fbshipit-source-id: 683da223956570304a9ba80dacfb4659ff9a114b
parent f59ddd8c
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include <folly/synchronization/test/BatonTestHelpers.h> #include <folly/synchronization/test/BatonTestHelpers.h>
#include <folly/test/DeterministicSchedule.h> #include <folly/test/DeterministicSchedule.h>
using namespace folly;
using namespace folly::test; using namespace folly::test;
using folly::detail::EmulatedFutexAtomic; using folly::detail::EmulatedFutexAtomic;
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include <folly/synchronization/test/BatonTestHelpers.h> #include <folly/synchronization/test/BatonTestHelpers.h>
#include <folly/test/DeterministicSchedule.h> #include <folly/test/DeterministicSchedule.h>
using namespace folly;
using namespace folly::test; using namespace folly::test;
using folly::detail::EmulatedFutexAtomic; using folly::detail::EmulatedFutexAtomic;
using std::chrono::steady_clock; using std::chrono::steady_clock;
......
...@@ -589,7 +589,6 @@ TEST(DistributedMutex, BasicTryLock) { ...@@ -589,7 +589,6 @@ TEST(DistributedMutex, BasicTryLock) {
} }
TEST(DistributedMutex, TestSingleElementContentionChain) { TEST(DistributedMutex, TestSingleElementContentionChain) {
using namespace folly::detail;
// Acquire the mutex once, let another thread form a contention chain on the // Acquire the mutex once, let another thread form a contention chain on the
// mutex, and then release it. Observe the other thread grab the lock // mutex, and then release it. Observe the other thread grab the lock
...@@ -621,7 +620,6 @@ TEST(DistributedMutex, TestSingleElementContentionChain) { ...@@ -621,7 +620,6 @@ TEST(DistributedMutex, TestSingleElementContentionChain) {
} }
TEST(DistributedMutex, TestTwoElementContentionChain) { TEST(DistributedMutex, TestTwoElementContentionChain) {
using namespace folly::detail;
// Acquire the mutex once, let another thread form a contention chain on the // Acquire the mutex once, let another thread form a contention chain on the
// mutex, and then release it. Observe the other thread grab the lock // mutex, and then release it. Observe the other thread grab the lock
...@@ -669,7 +667,6 @@ TEST(DistributedMutex, TestTwoElementContentionChain) { ...@@ -669,7 +667,6 @@ TEST(DistributedMutex, TestTwoElementContentionChain) {
} }
TEST(DistributedMutex, TestTwoContentionChains) { TEST(DistributedMutex, TestTwoContentionChains) {
using namespace folly::detail;
auto&& schedule = test::ManualSchedule{}; auto&& schedule = test::ManualSchedule{};
auto&& mutex = test::TestDistributedMutex<test::ManualAtomic>{}; auto&& mutex = test::TestDistributedMutex<test::ManualAtomic>{};
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#include <folly/portability/SysMman.h> #include <folly/portability/SysMman.h>
#include <folly/synchronization/test/Barrier.h> #include <folly/synchronization/test/Barrier.h>
using namespace std::literals::chrono_literals;
using namespace folly::test; using namespace folly::test;
......
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
using folly::MicroLock; using folly::MicroLock;
using folly::MicroSpinLock; using folly::MicroSpinLock;
using folly::MSLGuard; using folly::MSLGuard;
using std::string;
#ifdef FOLLY_PICO_SPIN_LOCK_H_ #ifdef FOLLY_PICO_SPIN_LOCK_H_
using folly::PicoSpinLock; using folly::PicoSpinLock;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment