File tree Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -96,13 +96,6 @@ class DispatchMessagesTask : public v8::Task {
9696 MainThreadInterface* thread_;
9797};
9898
99- void DisposePairCallback (uv_handle_t * ref) {
100- using AsyncAndInterface = std::pair<uv_async_t , MainThreadInterface*>;
101- AsyncAndInterface* pair = node::ContainerOf (
102- &AsyncAndInterface::first, reinterpret_cast <uv_async_t *>(ref));
103- delete pair;
104- }
105-
10699template <typename T>
107100class AnotherThreadObjectReference {
108101 public:
@@ -231,18 +224,6 @@ MainThreadInterface::~MainThreadInterface() {
231224 handle_->Reset ();
232225}
233226
234- // static
235- void MainThreadInterface::DispatchMessagesAsyncCallback (uv_async_t * async) {
236- AsyncAndInterface* asyncAndInterface =
237- node::ContainerOf (&AsyncAndInterface::first, async);
238- asyncAndInterface->second ->DispatchMessages ();
239- }
240-
241- // static
242- void MainThreadInterface::CloseAsync (AsyncAndInterface* pair) {
243- uv_close (reinterpret_cast <uv_handle_t *>(&pair->first ), DisposePairCallback);
244- }
245-
246227void MainThreadInterface::Post (std::unique_ptr<Request> request) {
247228 Mutex::ScopedLock scoped_lock (requests_lock_);
248229 bool needs_notify = requests_.empty ();
Original file line number Diff line number Diff line change @@ -89,11 +89,6 @@ class MainThreadInterface {
8989 void RemoveObject (int handle);
9090
9191 private:
92- using AsyncAndInterface = std::pair<uv_async_t , MainThreadInterface*>;
93-
94- static void DispatchMessagesAsyncCallback (uv_async_t * async);
95- static void CloseAsync (AsyncAndInterface*);
96-
9792 MessageQueue requests_;
9893 Mutex requests_lock_; // requests_ live across threads
9994 // This queue is to maintain the order of the messages for the cases
You can’t perform that action at this time.
0 commit comments