diff options
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/util.h b/src/util.h index c8bad8171e..133899008f 100644 --- a/src/util.h +++ b/src/util.h @@ -35,7 +35,6 @@ #include <string.h> #include <functional> // std::function -#include <type_traits> // std::remove_reference namespace node { @@ -84,8 +83,6 @@ NO_RETURN void Abort(); NO_RETURN void Assert(const char* const (*args)[4]); void DumpBacktrace(FILE* fp); -template <typename T> using remove_reference = std::remove_reference<T>; - #define FIXED_ONE_BYTE_STRING(isolate, string) \ (node::OneByteString((isolate), (string), sizeof(string) - 1)) @@ -135,14 +132,6 @@ template <typename T> using remove_reference = std::remove_reference<T>; #define UNREACHABLE() ABORT() -#define ASSIGN_OR_RETURN_UNWRAP(ptr, obj, ...) \ - do { \ - *ptr = \ - Unwrap<typename node::remove_reference<decltype(**ptr)>::type>(obj); \ - if (*ptr == nullptr) \ - return __VA_ARGS__; \ - } while (0) - // TAILQ-style intrusive list node. template <typename T> class ListNode; @@ -250,13 +239,6 @@ inline v8::Local<v8::String> OneByteString(v8::Isolate* isolate, const unsigned char* data, int length = -1); -inline void Wrap(v8::Local<v8::Object> object, void* pointer); - -inline void ClearWrap(v8::Local<v8::Object> object); - -template <typename TypeName> -inline TypeName* Unwrap(v8::Local<v8::Object> object); - // Swaps bytes in place. nbytes is the number of bytes to swap and must be a // multiple of the word size (checked by function). inline void SwapBytes16(char* data, size_t nbytes); |