diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2016-04-05 12:03:57 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2016-04-05 16:19:57 +0200 |
commit | 757fbac64bc813788c78d2d33c70ee2b53813a25 (patch) | |
tree | 0ab548cc242e63d62d94b0c24b6a565d0e0e5176 /src/string_bytes.h | |
parent | 2253be95d06c63b9c3593a8c2769984168309564 (diff) | |
download | node-new-757fbac64bc813788c78d2d33c70ee2b53813a25.tar.gz |
src: remove deprecated internal functions
PR-URL: https://github.com/nodejs/node/pull/6053
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/string_bytes.h')
-rw-r--r-- | src/string_bytes.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/src/string_bytes.h b/src/string_bytes.h index 7108862139..47a4255978 100644 --- a/src/string_bytes.h +++ b/src/string_bytes.h @@ -110,52 +110,6 @@ class StringBytes { const char* buf, enum encoding encoding); - // Deprecated legacy interface - - NODE_DEPRECATED("Use IsValidString(isolate, ...)", - static inline bool IsValidString( - v8::Local<v8::String> string, - enum encoding enc) { - return IsValidString(v8::Isolate::GetCurrent(), string, enc); - }) - - NODE_DEPRECATED("Use StorageSize(isolate, ...)", - static inline size_t StorageSize(v8::Local<v8::Value> val, - enum encoding enc) { - return StorageSize(v8::Isolate::GetCurrent(), val, enc); - }) - - NODE_DEPRECATED("Use Size(isolate, ...)", - static inline size_t Size(v8::Local<v8::Value> val, - enum encoding enc) { - return Size(v8::Isolate::GetCurrent(), val, enc); - }) - - NODE_DEPRECATED("Use GetExternalParts(isolate, ...)", - static inline bool GetExternalParts(v8::Local<v8::Value> val, - const char** data, - size_t* len) { - return GetExternalParts(v8::Isolate::GetCurrent(), val, data, len); - }) - - NODE_DEPRECATED("Use Write(isolate, ...)", - static inline size_t Write(char* buf, - size_t buflen, - v8::Local<v8::Value> val, - enum encoding enc, - int* chars_written = nullptr) { - v8::Isolate* isolate = v8::Isolate::GetCurrent(); - return Write(isolate, buf, buflen, val, enc, chars_written); - }) - - NODE_DEPRECATED("Use Encode(isolate, ...)", - static inline v8::Local<v8::Value> Encode( - const char* buf, - size_t buflen, - enum encoding encoding) { - return Encode(v8::Isolate::GetCurrent(), buf, buflen, encoding); - }) - private: static size_t WriteUCS2(char* buf, size_t buflen, |