src: remove virtually unused ExecScope · nodejs/node@f60a2aa · GitHub
Skip to content

Commit f60a2aa

Browse files
addaleaxjasnell
authored andcommitted
src: remove virtually unused ExecScope
PR-URL: #14697 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent a47fe69 commit f60a2aa

3 files changed

Lines changed: 2 additions & 40 deletions

File tree

src/env-inl.h

Lines changed: 0 additions & 20 deletions

src/env.h

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -416,25 +416,6 @@ class Environment {
416416
DISALLOW_COPY_AND_ASSIGN(InitScope);
417417
};
418418

419-
// Used to manage the stack of async and trigger ids as calls are made into
420-
// JS. Mainly used in MakeCallback().
421-
class ExecScope {
422-
public:
423-
ExecScope() = delete;
424-
explicit ExecScope(Environment* env, double async_id, double trigger_id);
425-
~ExecScope();
426-
void Dispose();
427-
428-
private:
429-
Environment* env_;
430-
double async_id_;
431-
// Manually track if the destructor has run so it isn't accidentally run
432-
// twice on RAII cleanup.
433-
bool disposed_;
434-
435-
DISALLOW_COPY_AND_ASSIGN(ExecScope);
436-
};
437-
438419
private:
439420
friend class Environment; // So we can call the constructor.
440421
inline explicit AsyncHooks(v8::Isolate* isolate);

src/node.cc

Lines changed: 2 additions & 1 deletion

0 commit comments

Comments
 (0)