Skip to content

Commit 26fa85c

Browse files
MarianneDrjasnell
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 69365ef commit 26fa85c

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;
@@ -526,11 +524,6 @@ Local<Object> UDPWrap::Instantiate(Environment* env,
526524
}
527525

528526

529-
uv_udp_t* UDPWrap::UVHandle() {
530-
return &handle_;
531-
}
532-
533-
534527
} // namespace node
535528

536529
NODE_MODULE_CONTEXT_AWARE_INTERNAL(udp_wrap, node::UDPWrap::Initialize)

src/udp_wrap.h

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

0 commit comments

Comments
 (0)