Skip to content

Commit 30f0a3b

Browse files
committed
src: remove dead inspector code
This was overlooked in c583245. Refs: #26137 PR-URL: #26295 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent 6fdc502 commit 30f0a3b

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

src/inspector/main_thread_interface.cc

-19
Original file line numberDiff line numberDiff 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-
10699
template <typename T>
107100
class 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-
246227
void MainThreadInterface::Post(std::unique_ptr<Request> request) {
247228
Mutex::ScopedLock scoped_lock(requests_lock_);
248229
bool needs_notify = requests_.empty();

src/inspector/main_thread_interface.h

-5
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)