From 4dd7c4b2e4ed9d70d4220380dde81b60c50faed0 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Sat, 23 Feb 2019 20:29:38 +0100 Subject: [PATCH] worker: remove MessagePort::AddToIncomingQueue PR-URL: https://github.com/nodejs/node/pull/26271 Reviewed-By: Richard Lau Reviewed-By: James M Snell Reviewed-By: Ben Noordhuis Reviewed-By: Gireesh Punathil --- src/node_messaging.cc | 4 ---- src/node_messaging.h | 2 -- 2 files changed, 6 deletions(-) diff --git a/src/node_messaging.cc b/src/node_messaging.cc index 7ca3ad14d03406..c9be44f4102816 100644 --- a/src/node_messaging.cc +++ b/src/node_messaging.cc @@ -494,10 +494,6 @@ MessagePort::MessagePort(Environment* env, Debug(this, "Created message port"); } -void MessagePort::AddToIncomingQueue(Message&& message) { - data_->AddToIncomingQueue(std::move(message)); -} - uv_async_t* MessagePort::async() { return reinterpret_cast(GetHandle()); } diff --git a/src/node_messaging.h b/src/node_messaging.h index 9055a8bf961844..00fd4d7f9f00f4 100644 --- a/src/node_messaging.h +++ b/src/node_messaging.h @@ -152,8 +152,6 @@ class MessagePort : public HandleWrap { v8::Maybe PostMessage(Environment* env, v8::Local message, v8::Local transfer); - // Deliver a single message into this port's incoming queue. - void AddToIncomingQueue(Message&& message); // Start processing messages on this port as a receiving end. void Start();