Skip to content

Commit

Permalink
remove handlescope
Browse files Browse the repository at this point in the history
  • Loading branch information
asilvas committed Sep 18, 2023
1 parent 7a78b3b commit f5d581e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/faiss.cc
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,6 @@ class Index : public IndexBase<Index, faiss::IndexFlatL2>

static Napi::Object Init(Napi::Env env, Napi::Object exports)
{
Napi::HandleScope scope(env);

// clang-format off
auto func = DefineClass(env, CLASS_NAME, {
InstanceMethod("ntotal", &Index::ntotal),
Expand Down Expand Up @@ -497,8 +495,6 @@ class IndexFlatL2 : public IndexBase<IndexFlatL2, faiss::IndexFlatL2>

static Napi::Object Init(Napi::Env env, Napi::Object exports)
{
Napi::HandleScope scope(env);

// clang-format off
auto func = DefineClass(env, CLASS_NAME, {
InstanceMethod("ntotal", &IndexFlatL2::ntotal),
Expand Down Expand Up @@ -533,8 +529,6 @@ class IndexFlatIP : public IndexBase<IndexFlatIP, faiss::IndexFlatIP>

static Napi::Object Init(Napi::Env env, Napi::Object exports)
{
Napi::HandleScope scope(env);

// clang-format off
auto func = DefineClass(env, CLASS_NAME, {
InstanceMethod("ntotal", &IndexFlatIP::ntotal),
Expand Down

0 comments on commit f5d581e

Please sign in to comment.