Skip to content

Commit ea1175c

Browse files
committed
removed unused code
1 parent b9abd79 commit ea1175c

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/integer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ class Integer : public node::ObjectWrap {
309309
static Result Cast(NODE_ARGUMENTS info, v8::Local<v8::String> string, uint8_t radix) {
310310
auto IsWhitespace = [](uint16_t c) { return c == ' ' || (c <= '\r' && c >= '\t'); };
311311

312-
v8::String::Value utf16(EXTRACT_STRING(info.GetIsolate(), string));
312+
v8::String::Value utf16(info.GetIsolate(), string);
313313
const uint16_t* str = *utf16;
314314
int len = utf16.length();
315315
int i = 0;

src/macros.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,6 @@ void ThrowRangeError(NODE_ARGUMENTS info, const char* message) { ThrowException(
3737
#define fourth() 3
3838
#define fifth() 4
3939

40-
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 6 ||\
41-
(V8_MAJOR_VERSION == 6 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 2))
42-
#define EXTRACT_STRING(isolate, string) isolate, string
43-
#else
44-
#define EXTRACT_STRING(_unused, string) string
45-
#endif
46-
4740
#define UseAddon Addon* addon = static_cast<Addon*>(v8::Local<v8::External>::Cast(info.Data())->Value())
4841
#define UseValue int64_t value = node::ObjectWrap::Unwrap<Integer>(info.This())->value
4942
#define UseArgument\

0 commit comments

Comments
 (0)