Skip to content

Commit 3887480

Browse files
committed
Revert "Add support for NAPI 6"
This reverts commit 6c83b0f.
1 parent 4557dd7 commit 3887480

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

include/ref-napi.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
#ifndef REF_NAPI_H
22
#define REF_NAPI_H
33

4-
#if !defined(NAPI_VERSION) || NAPI_VERSION < 6
54
#include <get-symbol-from-current-process.h>
6-
#endif
75
#include "napi.h"
86

97
// The definitions in this file are intended to be used by node-ffi-napi.

src/binding.cc

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ using namespace Napi;
2424

2525
namespace {
2626

27-
#if !defined(NAPI_VERSION) || NAPI_VERSION < 6
2827
napi_status napix_set_instance_data(
2928
napi_env env, void* data, napi_finalize finalize_cb, void* finalize_hint) {
3029
typedef napi_status (*napi_set_instance_data_fn)(
@@ -51,17 +50,6 @@ napi_status napix_get_instance_data(
5150
return napi_generic_failure;
5251
return napi_get_instance_data__(env, data);
5352
}
54-
#else // NAPI_VERSION >= 6
55-
napi_status napix_set_instance_data(
56-
napi_env env, void* data, napi_finalize finalize_cb, void* finalize_hint) {
57-
return napi_set_instance_data(env, data, finalize_cb, finalize_hint);
58-
}
59-
60-
napi_status napix_get_instance_data(
61-
napi_env env, void** data) {
62-
return napi_get_instance_data(env, data);
63-
}
64-
#endif
6553

6654
// used by the Int64 functions to determine whether to return a Number
6755
// or String based on whether or not a Number will lose precision.

0 commit comments

Comments
 (0)