pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/nodejs/node/commit/d429aa2d174cf199ee5d446a7e580830ec29f5a9

er-b48faa60c69660fa.css" /> src: remove deprecated node::CreatePlatform and node::FreePlatform · nodejs/node@d429aa2 · GitHub
Skip to content

Commit d429aa2

Browse files
legendecasnodejs-github-bot
authored andcommitted
src: remove deprecated node::CreatePlatform and node::FreePlatform
PR-URL: #58470 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent e0ae14c commit d429aa2

2 files changed

Lines changed: 6 additions & 33 deletions

File tree

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: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -832,19 +832,12 @@ 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()
843-
// will implicitly set this by default. This is global and should be initialized
844-
// along with the v8::Platform instance that is being used. `controller`
845-
// is allowed to be `nullptr`.
846-
// This is used for tracing events from Node.js itself. V8 uses the tracing
847-
// controller returned from the active `v8::Platform` instance.
835+
// Get/set the currently active tracing controller. Using
836+
// MultiIsolatePlatform::Create() will implicitly set this by default. This is
837+
// global and should be initialized along with the v8::Platform instance that is
838+
// being used. `controller` is allowed to be `nullptr`. This is used for tracing
839+
// events from Node.js itself. V8 uses the tracing controller returned from the
840+
// active `v8::Platform` instance.
848841
NODE_EXTERN v8::TracingController* GetTracingController();
849842
NODE_EXTERN void SetTracingController(v8::TracingController* controller);
850843

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy