Skip to content

Commit

Permalink
Remove unnecessary onReadTxnRenew cast, #67
Browse files Browse the repository at this point in the history
  • Loading branch information
kriszyp committed Oct 27, 2021
1 parent 72aebca commit de03f6e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/env.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,6 @@ NAN_METHOD(EnvWrap::open) {
if (keyBufferValue->IsArrayBufferView())
ew->keyBuffer = node::Buffer::Data(keyBufferValue);

Local<Value> onReadTxnRenew = options->Get(Nan::GetCurrentContext(), Nan::New<String>("onReadTxnRenew").ToLocalChecked()).ToLocalChecked();
ew->onReadTxnRenew.Reset(Local<Function>::Cast(onReadTxnRenew));
Local<Value> winMemoryPriorityLocal = options->Get(Nan::GetCurrentContext(), Nan::New<String>("winMemoryPriority").ToLocalChecked()).ToLocalChecked();
if (winMemoryPriorityLocal->IsNumber())
ew->winMemoryPriority = winMemoryPriorityLocal->IntegerValue(Nan::GetCurrentContext()).FromJust();
Expand Down
1 change: 0 additions & 1 deletion src/node-lmdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ class EnvWrap : public Nan::ObjectWrap {
// What memory priority for accessing LMDB data in windows
int winMemoryPriority;
char* keyBuffer;
Nan::Persistent<Function> onReadTxnRenew;
MDB_txn* getReadTxn();

// Sets up exports for the Env constructor
Expand Down

0 comments on commit de03f6e

Please sign in to comment.