Skip to content

Commit

Permalink
src: remove unused UVHandle methods
Browse files Browse the repository at this point in the history
PR-URL: #23535
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
MarianneDr authored and MylesBorins committed Oct 30, 2018
1 parent de8ffba commit fa7d0ce
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 20 deletions.
4 changes: 0 additions & 4 deletions src/connection_wrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ namespace node {
template <typename WrapType, typename UVType>
class ConnectionWrap : public LibuvStreamWrap {
public:
UVType* UVHandle() {
return &handle_;
}

static void OnConnection(uv_stream_t* handle, int status);
static void AfterConnect(uv_connect_t* req, int status);

Expand Down
5 changes: 0 additions & 5 deletions src/tty_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,6 @@ void TTYWrap::Initialize(Local<Object> target,
}


uv_tty_t* TTYWrap::UVHandle() {
return &handle_;
}


void TTYWrap::GuessHandleType(const FunctionCallbackInfo<Value>& args) {
Environment* env = Environment::GetCurrent(args);
int fd;
Expand Down
2 changes: 0 additions & 2 deletions src/tty_wrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ class TTYWrap : public LibuvStreamWrap {
v8::Local<v8::Value> unused,
v8::Local<v8::Context> context);

uv_tty_t* UVHandle();

SET_NO_MEMORY_INFO()
SET_MEMORY_INFO_NAME(TTYWrap)
SET_SELF_SIZE(TTYWrap)
Expand Down
7 changes: 0 additions & 7 deletions src/udp_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
#include "req_wrap-inl.h"
#include "util-inl.h"



namespace node {

using v8::Array;
Expand Down Expand Up @@ -512,11 +510,6 @@ Local<Object> UDPWrap::Instantiate(Environment* env,
}


uv_udp_t* UDPWrap::UVHandle() {
return &handle_;
}


} // namespace node

NODE_BUILTIN_MODULE_CONTEXT_AWARE(udp_wrap, node::UDPWrap::Initialize)
2 changes: 0 additions & 2 deletions src/udp_wrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ class UDPWrap: public HandleWrap {
static v8::Local<v8::Object> Instantiate(Environment* env,
AsyncWrap* parent,
SocketType type);
uv_udp_t* UVHandle();

SET_NO_MEMORY_INFO()
SET_MEMORY_INFO_NAME(UDPWrap)
SET_SELF_SIZE(UDPWrap)
Expand Down

0 comments on commit fa7d0ce

Please sign in to comment.