src: remove unused UVHandle methods
PR-URL: https://github.com/nodejs/node/pull/23535 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
2d76dec4b4
commit
0d6f014390
@ -12,10 +12,6 @@ namespace node {
|
|||||||
template <typename WrapType, typename UVType>
|
template <typename WrapType, typename UVType>
|
||||||
class ConnectionWrap : public LibuvStreamWrap {
|
class ConnectionWrap : public LibuvStreamWrap {
|
||||||
public:
|
public:
|
||||||
UVType* UVHandle() {
|
|
||||||
return &handle_;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void OnConnection(uv_stream_t* handle, int status);
|
static void OnConnection(uv_stream_t* handle, int status);
|
||||||
static void AfterConnect(uv_connect_t* req, int status);
|
static void AfterConnect(uv_connect_t* req, int status);
|
||||||
|
|
||||||
|
@ -64,11 +64,6 @@ void TTYWrap::Initialize(Local<Object> target,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
uv_tty_t* TTYWrap::UVHandle() {
|
|
||||||
return &handle_;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void TTYWrap::GuessHandleType(const FunctionCallbackInfo<Value>& args) {
|
void TTYWrap::GuessHandleType(const FunctionCallbackInfo<Value>& args) {
|
||||||
Environment* env = Environment::GetCurrent(args);
|
Environment* env = Environment::GetCurrent(args);
|
||||||
int fd;
|
int fd;
|
||||||
|
@ -36,8 +36,6 @@ class TTYWrap : public LibuvStreamWrap {
|
|||||||
v8::Local<v8::Value> unused,
|
v8::Local<v8::Value> unused,
|
||||||
v8::Local<v8::Context> context);
|
v8::Local<v8::Context> context);
|
||||||
|
|
||||||
uv_tty_t* UVHandle();
|
|
||||||
|
|
||||||
SET_NO_MEMORY_INFO()
|
SET_NO_MEMORY_INFO()
|
||||||
SET_MEMORY_INFO_NAME(TTYWrap)
|
SET_MEMORY_INFO_NAME(TTYWrap)
|
||||||
SET_SELF_SIZE(TTYWrap)
|
SET_SELF_SIZE(TTYWrap)
|
||||||
|
@ -27,8 +27,6 @@
|
|||||||
#include "req_wrap-inl.h"
|
#include "req_wrap-inl.h"
|
||||||
#include "util-inl.h"
|
#include "util-inl.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
namespace node {
|
namespace node {
|
||||||
|
|
||||||
using v8::Array;
|
using v8::Array;
|
||||||
@ -526,11 +524,6 @@ Local<Object> UDPWrap::Instantiate(Environment* env,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
uv_udp_t* UDPWrap::UVHandle() {
|
|
||||||
return &handle_;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace node
|
} // namespace node
|
||||||
|
|
||||||
NODE_MODULE_CONTEXT_AWARE_INTERNAL(udp_wrap, node::UDPWrap::Initialize)
|
NODE_MODULE_CONTEXT_AWARE_INTERNAL(udp_wrap, node::UDPWrap::Initialize)
|
||||||
|
@ -63,8 +63,6 @@ class UDPWrap: public HandleWrap {
|
|||||||
static v8::Local<v8::Object> Instantiate(Environment* env,
|
static v8::Local<v8::Object> Instantiate(Environment* env,
|
||||||
AsyncWrap* parent,
|
AsyncWrap* parent,
|
||||||
SocketType type);
|
SocketType type);
|
||||||
uv_udp_t* UVHandle();
|
|
||||||
|
|
||||||
SET_NO_MEMORY_INFO()
|
SET_NO_MEMORY_INFO()
|
||||||
SET_MEMORY_INFO_NAME(UDPWrap)
|
SET_MEMORY_INFO_NAME(UDPWrap)
|
||||||
SET_SELF_SIZE(UDPWrap)
|
SET_SELF_SIZE(UDPWrap)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user