Skip to content

Commit

Permalink
src: use deleted function instead of private function in class AsyncWrap
Browse files Browse the repository at this point in the history
PR-URL: #26634
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Refael Ackermann <refack@gmail.com>
  • Loading branch information
gengjiawen authored and targos committed Mar 27, 2019
1 parent 51b8a89 commit 3637e71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/async_wrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ class AsyncWrap : public BaseObject {

~AsyncWrap() override;

AsyncWrap() = delete;

static v8::Local<v8::FunctionTemplate> GetConstructorTemplate(
Environment* env);

Expand Down Expand Up @@ -200,7 +202,6 @@ class AsyncWrap : public BaseObject {
ProviderType provider,
double execution_async_id,
bool silent);
inline AsyncWrap();
const ProviderType provider_type_;
// Because the values may be Reset(), cannot be made const.
double async_id_ = -1;
Expand Down

0 comments on commit 3637e71

Please sign in to comment.