Skip to content

Commit af8e75c

Browse files
MarianneDrrvagg
authored andcommitted
src: remove unused UVHandle methods
PR-URL: #23535 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 8c24a63 commit af8e75c

File tree

5 files changed

+0
-20
lines changed

5 files changed

+0
-20
lines changed

src/connection_wrap.h

-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ namespace node {
1212
template <typename WrapType, typename UVType>
1313
class ConnectionWrap : public LibuvStreamWrap {
1414
public:
15-
UVType* UVHandle() {
16-
return &handle_;
17-
}
18-
1915
static void OnConnection(uv_stream_t* handle, int status);
2016
static void AfterConnect(uv_connect_t* req, int status);
2117

src/tty_wrap.cc

-5
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,6 @@ void TTYWrap::Initialize(Local<Object> target,
6464
}
6565

6666

67-
uv_tty_t* TTYWrap::UVHandle() {
68-
return &handle_;
69-
}
70-
71-
7267
void TTYWrap::GuessHandleType(const FunctionCallbackInfo<Value>& args) {
7368
Environment* env = Environment::GetCurrent(args);
7469
int fd;

src/tty_wrap.h

-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ class TTYWrap : public LibuvStreamWrap {
3636
v8::Local<v8::Value> unused,
3737
v8::Local<v8::Context> context);
3838

39-
uv_tty_t* UVHandle();
40-
4139
SET_NO_MEMORY_INFO()
4240
SET_MEMORY_INFO_NAME(TTYWrap)
4341
SET_SELF_SIZE(TTYWrap)

src/udp_wrap.cc

-7
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
#include "req_wrap-inl.h"
2828
#include "util-inl.h"
2929

30-
31-
3230
namespace node {
3331

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

514512

515-
uv_udp_t* UDPWrap::UVHandle() {
516-
return &handle_;
517-
}
518-
519-
520513
} // namespace node
521514

522515
NODE_BUILTIN_MODULE_CONTEXT_AWARE(udp_wrap, node::UDPWrap::Initialize)

src/udp_wrap.h

-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ class UDPWrap: public HandleWrap {
6262
static v8::Local<v8::Object> Instantiate(Environment* env,
6363
AsyncWrap* parent,
6464
SocketType type);
65-
uv_udp_t* UVHandle();
66-
6765
SET_NO_MEMORY_INFO()
6866
SET_MEMORY_INFO_NAME(UDPWrap)
6967
SET_SELF_SIZE(UDPWrap)

0 commit comments

Comments
 (0)