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 refack committed Mar 18, 2019
1 parent b215bf9 commit dace489
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/async_wrap.h
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 dace489

Please sign in to comment.