Mark empty destructors as having a default no-op implementation.
Remove a few unused constructors and destructors while we are here.
}
-inline AsyncWrap::~AsyncWrap() {
-}
-
inline uint32_t AsyncWrap::provider_type() const {
return provider_type_;
}
v8::Handle<v8::Object> object,
ProviderType provider);
- inline ~AsyncWrap();
+ inline ~AsyncWrap() = default;
inline bool has_async_listener();
// the process.
static const size_t kMaxLength = 0x3fffffff;
static ArrayBufferAllocator the_singleton;
- virtual ~ArrayBufferAllocator() {}
+ virtual ~ArrayBufferAllocator() = default;
virtual void* Allocate(size_t length) override;
virtual void* AllocateUninitialized(size_t length) override;
virtual void Free(void* data, size_t length) override;
private:
- ArrayBufferAllocator() {}
+ ArrayBufferAllocator() = default;
DISALLOW_COPY_AND_ASSIGN(ArrayBufferAllocator);
};
class ClientHello {
public:
- ClientHello() {
- }
-
inline uint8_t session_size() const { return session_size_; }
inline const uint8_t* session_id() const { return session_id_; }
inline bool has_ticket() const { return has_ticket_; }
// The last task to encounter before killing the worker
class StopTask : public Task {
public:
- StopTask() {}
- ~StopTask() {}
-
void Run() {}
};
AsyncWrap::PROVIDER_PROCESSWRAP) {
}
- ~ProcessWrap() {
- }
-
static void ParseStdioOptions(Environment* env,
Local<Object> js_options,
uv_process_options_t* options) {
CHECK_EQ(r, 0);
}
- ~SignalWrap() {
- }
-
static void Start(const FunctionCallbackInfo<Value>& args) {
SignalWrap* wrap = Unwrap<SignalWrap>(args.Holder());
int signum = args[0]->Int32Value();
explicit StreamWrapCallbacks(StreamWrapCallbacks* old) : wrap_(old->wrap()) {
}
- virtual ~StreamWrapCallbacks() {
- }
+ virtual ~StreamWrapCallbacks() = default;
virtual const char* Error();
CHECK_EQ(r, 0);
}
- ~TimerWrap() {
- }
-
static void Start(const FunctionCallbackInfo<Value>& args) {
TimerWrap* wrap = Unwrap<TimerWrap>(args.Holder());
}
-UDPWrap::~UDPWrap() {
-}
-
-
void UDPWrap::Initialize(Handle<Object> target,
Handle<Value> unused,
Handle<Context> context) {
private:
UDPWrap(Environment* env, v8::Handle<v8::Object> object);
- virtual ~UDPWrap() override;
static void DoBind(const v8::FunctionCallbackInfo<v8::Value>& args,
int family);