Skip to content

Commit df806f1

Browse files
committed
src: remove deprecated node::CreatePlatform and node::FreePlatform
1 parent cf88f3f commit df806f1

File tree

2 files changed

+1
-28
lines changed

2 files changed

+1
-28
lines changed

src/api/environment.cc

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -583,26 +583,6 @@ MultiIsolatePlatform* GetMultiIsolatePlatform(IsolateData* env) {
583583
return env->platform();
584584
}
585585

586-
MultiIsolatePlatform* CreatePlatform(
587-
int thread_pool_size,
588-
node::tracing::TracingController* tracing_controller) {
589-
return CreatePlatform(
590-
thread_pool_size,
591-
static_cast<v8::TracingController*>(tracing_controller));
592-
}
593-
594-
MultiIsolatePlatform* CreatePlatform(
595-
int thread_pool_size,
596-
v8::TracingController* tracing_controller) {
597-
return MultiIsolatePlatform::Create(thread_pool_size,
598-
tracing_controller)
599-
.release();
600-
}
601-
602-
void FreePlatform(MultiIsolatePlatform* platform) {
603-
delete platform;
604-
}
605-
606586
std::unique_ptr<MultiIsolatePlatform> MultiIsolatePlatform::Create(
607587
int thread_pool_size,
608588
v8::TracingController* tracing_controller,

src/node.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -832,14 +832,7 @@ NODE_EXTERN void GetNodeReport(Environment* env,
832832
NODE_EXTERN MultiIsolatePlatform* GetMultiIsolatePlatform(Environment* env);
833833
NODE_EXTERN MultiIsolatePlatform* GetMultiIsolatePlatform(IsolateData* env);
834834

835-
NODE_DEPRECATED("Use MultiIsolatePlatform::Create() instead",
836-
NODE_EXTERN MultiIsolatePlatform* CreatePlatform(
837-
int thread_pool_size,
838-
v8::TracingController* tracing_controller));
839-
NODE_DEPRECATED("Use MultiIsolatePlatform::Create() instead",
840-
NODE_EXTERN void FreePlatform(MultiIsolatePlatform* platform));
841-
842-
// Get/set the currently active tracing controller. Using CreatePlatform()
835+
// Get/set the currently active tracing controller. Using MultiIsolatePlatform::Create()
843836
// will implicitly set this by default. This is global and should be initialized
844837
// along with the v8::Platform instance that is being used. `controller`
845838
// is allowed to be `nullptr`.

0 commit comments

Comments
 (0)