diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-09-30 12:23:36 -0400 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-10-04 09:26:14 -0700 |
commit | 3d2124505eae95b72158a14c8f99373ca3e94e5a (patch) | |
tree | a87b906ed98db88960cf5dcddda25d99b4b6fed7 /src/node.h | |
parent | 8bf48bf2cf714125fef91fd0651d3517b8953034 (diff) | |
download | android-node-v8-3d2124505eae95b72158a14c8f99373ca3e94e5a.tar.gz android-node-v8-3d2124505eae95b72158a14c8f99373ca3e94e5a.tar.bz2 android-node-v8-3d2124505eae95b72158a14c8f99373ca3e94e5a.zip |
src: remove long-deprecated APIs without `Isolate*` arg
These have been deprecated since 75adde07f9a2de7f38a67bec72bd37
(February 2014) and most likely do not see much ecosystem usage
to begin with.
PR-URL: https://github.com/nodejs/node/pull/23178
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node.h')
-rw-r--r-- | src/node.h | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/src/node.h b/src/node.h index e9757a81f2..8728745f43 100644 --- a/src/node.h +++ b/src/node.h @@ -390,21 +390,10 @@ NODE_EXTERN enum encoding ParseEncoding( v8::Isolate* isolate, v8::Local<v8::Value> encoding_v, enum encoding default_encoding = LATIN1); -NODE_DEPRECATED("Use ParseEncoding(isolate, ...)", - inline enum encoding ParseEncoding( - v8::Local<v8::Value> encoding_v, - enum encoding default_encoding = LATIN1) { - return ParseEncoding(v8::Isolate::GetCurrent(), encoding_v, default_encoding); -}) NODE_EXTERN void FatalException(v8::Isolate* isolate, const v8::TryCatch& try_catch); -NODE_DEPRECATED("Use FatalException(isolate, ...)", - inline void FatalException(const v8::TryCatch& try_catch) { - return FatalException(v8::Isolate::GetCurrent(), try_catch); -}) - NODE_EXTERN v8::Local<v8::Value> Encode(v8::Isolate* isolate, const char* buf, size_t len, @@ -416,46 +405,16 @@ NODE_EXTERN v8::Local<v8::Value> Encode(v8::Isolate* isolate, const uint16_t* buf, size_t len); -NODE_DEPRECATED("Use Encode(isolate, ...)", - inline v8::Local<v8::Value> Encode( - const void* buf, - size_t len, - enum encoding encoding = LATIN1) { - v8::Isolate* isolate = v8::Isolate::GetCurrent(); - if (encoding == UCS2) { - assert(reinterpret_cast<uintptr_t>(buf) % sizeof(uint16_t) == 0 && - "UCS2 buffer must be aligned on two-byte boundary."); - const uint16_t* that = static_cast<const uint16_t*>(buf); - return Encode(isolate, that, len / sizeof(*that)); - } - return Encode(isolate, static_cast<const char*>(buf), len, encoding); -}) - // Returns -1 if the handle was not valid for decoding NODE_EXTERN ssize_t DecodeBytes(v8::Isolate* isolate, v8::Local<v8::Value>, enum encoding encoding = LATIN1); -NODE_DEPRECATED("Use DecodeBytes(isolate, ...)", - inline ssize_t DecodeBytes( - v8::Local<v8::Value> val, - enum encoding encoding = LATIN1) { - return DecodeBytes(v8::Isolate::GetCurrent(), val, encoding); -}) - // returns bytes written. NODE_EXTERN ssize_t DecodeWrite(v8::Isolate* isolate, char* buf, size_t buflen, v8::Local<v8::Value>, enum encoding encoding = LATIN1); -NODE_DEPRECATED("Use DecodeWrite(isolate, ...)", - inline ssize_t DecodeWrite(char* buf, - size_t buflen, - v8::Local<v8::Value> val, - enum encoding encoding = LATIN1) { - return DecodeWrite(v8::Isolate::GetCurrent(), buf, buflen, val, encoding); -}) - #ifdef _WIN32 NODE_EXTERN v8::Local<v8::Value> WinapiErrnoException( v8::Isolate* isolate, @@ -463,17 +422,6 @@ NODE_EXTERN v8::Local<v8::Value> WinapiErrnoException( const char* syscall = nullptr, const char* msg = "", const char* path = nullptr); - -NODE_DEPRECATED("Use WinapiErrnoException(isolate, ...)", - inline v8::Local<v8::Value> WinapiErrnoException(int errorno, - const char* syscall = nullptr, const char* msg = "", - const char* path = nullptr) { - return WinapiErrnoException(v8::Isolate::GetCurrent(), - errorno, - syscall, - msg, - path); -}) #endif const char* signo_string(int errorno); |