diff options
Diffstat (limited to 'src/stream_wrap.cc')
-rw-r--r-- | src/stream_wrap.cc | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/src/stream_wrap.cc b/src/stream_wrap.cc index 3b50f638eb..c8ea8d228f 100644 --- a/src/stream_wrap.cc +++ b/src/stream_wrap.cc @@ -84,7 +84,7 @@ void StreamWrap::AddMethods(Environment* env, } -int StreamWrap::GetFD() const { +int StreamWrap::GetFD() { int fd = -1; #if !defined(_WIN32) if (stream() != nullptr) @@ -94,12 +94,12 @@ int StreamWrap::GetFD() const { } -bool StreamWrap::IsAlive() const { +bool StreamWrap::IsAlive() { return HandleWrap::IsAlive(this); } -bool StreamWrap::IsClosing() const { +bool StreamWrap::IsClosing() { return uv_is_closing(reinterpret_cast<uv_handle_t*>(stream())); } @@ -114,7 +114,7 @@ AsyncWrap* StreamWrap::GetAsyncWrap() { } -bool StreamWrap::IsIPCPipe() const { +bool StreamWrap::IsIPCPipe() { return is_named_pipe_ipc(); } @@ -359,16 +359,6 @@ void StreamWrap::OnAfterWriteImpl(WriteWrap* w, void* ctx) { wrap->UpdateWriteQueueSize(); } - -const char* StreamWrap::Error() const { - return nullptr; -} - - -void StreamWrap::ClearError() { - // No-op -} - } // namespace node NODE_MODULE_CONTEXT_AWARE_BUILTIN(stream_wrap, node::StreamWrap::Initialize) |