Skip to content
Prev Previous commit
Next Next commit
Using FQN in header and removing static
  • Loading branch information
danbev committed Jul 26, 2016
commit 877318fe631fad4e798c2d1d0939ead52580fa05
5 changes: 1 addition & 4 deletions src/connect_wrap-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@

namespace node {

using v8::FunctionCallbackInfo;
using v8::Value;

static inline void NewConnectWrap(const FunctionCallbackInfo<Value>& args) {
inline void NewConnectWrap(const v8::FunctionCallbackInfo<v8::Value>& args) {
CHECK(args.IsConstructCall());
}

Expand Down
10 changes: 2 additions & 8 deletions src/connect_wrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,16 @@

namespace node {

using v8::FunctionCallbackInfo;
using v8::Local;
using v8::Object;
using v8::Value;


class ConnectWrap : public ReqWrap<uv_connect_t> {
public:
ConnectWrap(Environment* env,
Local<Object> req_wrap_obj,
v8::Local<v8::Object> req_wrap_obj,
AsyncWrap::ProviderType provider);

size_t self_size() const override { return sizeof(*this); }
};

static inline void NewConnectWrap(const FunctionCallbackInfo<Value>& args);
inline void NewConnectWrap(const v8::FunctionCallbackInfo<v8::Value>& args);

} // namespace node

Expand Down