Skip to content

Commit 757fbac

Browse files
committed
src: remove deprecated internal functions
PR-URL: #6053 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 2253be9 commit 757fbac

File tree

2 files changed

+0
-78
lines changed

2 files changed

+0
-78
lines changed

src/node_internals.h

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -193,38 +193,6 @@ void ThrowUVException(v8::Isolate* isolate,
193193
const char* path = nullptr,
194194
const char* dest = nullptr);
195195

196-
NODE_DEPRECATED("Use ThrowError(isolate)",
197-
inline void ThrowError(const char* errmsg) {
198-
v8::Isolate* isolate = v8::Isolate::GetCurrent();
199-
return ThrowError(isolate, errmsg);
200-
})
201-
NODE_DEPRECATED("Use ThrowTypeError(isolate)",
202-
inline void ThrowTypeError(const char* errmsg) {
203-
v8::Isolate* isolate = v8::Isolate::GetCurrent();
204-
return ThrowTypeError(isolate, errmsg);
205-
})
206-
NODE_DEPRECATED("Use ThrowRangeError(isolate)",
207-
inline void ThrowRangeError(const char* errmsg) {
208-
v8::Isolate* isolate = v8::Isolate::GetCurrent();
209-
return ThrowRangeError(isolate, errmsg);
210-
})
211-
NODE_DEPRECATED("Use ThrowErrnoException(isolate)",
212-
inline void ThrowErrnoException(int errorno,
213-
const char* syscall = nullptr,
214-
const char* message = nullptr,
215-
const char* path = nullptr) {
216-
v8::Isolate* isolate = v8::Isolate::GetCurrent();
217-
return ThrowErrnoException(isolate, errorno, syscall, message, path);
218-
})
219-
NODE_DEPRECATED("Use ThrowUVException(isolate)",
220-
inline void ThrowUVException(int errorno,
221-
const char* syscall = nullptr,
222-
const char* message = nullptr,
223-
const char* path = nullptr) {
224-
v8::Isolate* isolate = v8::Isolate::GetCurrent();
225-
return ThrowUVException(isolate, errorno, syscall, message, path);
226-
})
227-
228196
class ArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
229197
public:
230198
ArrayBufferAllocator() : env_(nullptr) { }

src/string_bytes.h

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -110,52 +110,6 @@ class StringBytes {
110110
const char* buf,
111111
enum encoding encoding);
112112

113-
// Deprecated legacy interface
114-
115-
NODE_DEPRECATED("Use IsValidString(isolate, ...)",
116-
static inline bool IsValidString(
117-
v8::Local<v8::String> string,
118-
enum encoding enc) {
119-
return IsValidString(v8::Isolate::GetCurrent(), string, enc);
120-
})
121-
122-
NODE_DEPRECATED("Use StorageSize(isolate, ...)",
123-
static inline size_t StorageSize(v8::Local<v8::Value> val,
124-
enum encoding enc) {
125-
return StorageSize(v8::Isolate::GetCurrent(), val, enc);
126-
})
127-
128-
NODE_DEPRECATED("Use Size(isolate, ...)",
129-
static inline size_t Size(v8::Local<v8::Value> val,
130-
enum encoding enc) {
131-
return Size(v8::Isolate::GetCurrent(), val, enc);
132-
})
133-
134-
NODE_DEPRECATED("Use GetExternalParts(isolate, ...)",
135-
static inline bool GetExternalParts(v8::Local<v8::Value> val,
136-
const char** data,
137-
size_t* len) {
138-
return GetExternalParts(v8::Isolate::GetCurrent(), val, data, len);
139-
})
140-
141-
NODE_DEPRECATED("Use Write(isolate, ...)",
142-
static inline size_t Write(char* buf,
143-
size_t buflen,
144-
v8::Local<v8::Value> val,
145-
enum encoding enc,
146-
int* chars_written = nullptr) {
147-
v8::Isolate* isolate = v8::Isolate::GetCurrent();
148-
return Write(isolate, buf, buflen, val, enc, chars_written);
149-
})
150-
151-
NODE_DEPRECATED("Use Encode(isolate, ...)",
152-
static inline v8::Local<v8::Value> Encode(
153-
const char* buf,
154-
size_t buflen,
155-
enum encoding encoding) {
156-
return Encode(v8::Isolate::GetCurrent(), buf, buflen, encoding);
157-
})
158-
159113
private:
160114
static size_t WriteUCS2(char* buf,
161115
size_t buflen,

0 commit comments

Comments
 (0)