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 <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
MarianneDr authored and MylesBorins committed Nov 29, 2018
1 parent a665e3a commit e04a128
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 e04a128

Please sign in to comment.