[Groonga-commit] nroonga/nroonga at 07d08fa [master] Remove unnecessary variable declaration

Back to archive index

abetomo null+****@clear*****
Tue Sep 5 11:15:16 JST 2017


abetomo	2017-09-05 11:15:16 +0900 (Tue, 05 Sep 2017)

  New Revision: 07d08fa1584e9aeb9a7bdd8640913857d0b84d6e
  https://github.com/nroonga/nroonga/commit/07d08fa1584e9aeb9a7bdd8640913857d0b84d6e

  Merged aa61187: Merge pull request #13 from abetomo/use_nan_helper_method

  Message:
    Remove unnecessary variable declaration

  Modified files:
    src/nroonga.cc

  Modified: src/nroonga.cc (+0 -8)
===================================================================
--- src/nroonga.cc    2017-09-05 11:12:14 +0900 (230f81d)
+++ src/nroonga.cc    2017-09-05 11:15:16 +0900 (50271ac)
@@ -25,9 +25,6 @@ void Database::Initialize(Handle<Object> exports) {
 }
 
 void Database::New(const FunctionCallbackInfo<Value>& args) {
-  Isolate* isolate = Isolate::GetCurrent();
-  HandleScope scope(isolate);
-
   if (!args.IsConstructCall()) {
     Nan::ThrowTypeError("Use the new operator to create new Database objects");
     return;
@@ -73,8 +70,6 @@ bool Database::Cleanup() {
 }
 
 void Database::Close(const FunctionCallbackInfo<Value>& args) {
-  Isolate* isolate = Isolate::GetCurrent();
-  HandleScope scope(isolate);
   Database *db = ObjectWrap::Unwrap<Database>(args.Holder());
 
   if (db->closed) {
@@ -175,9 +170,6 @@ void Database::CommandString(const FunctionCallbackInfo<Value>& args) {
 }
 
 void Database::CommandSyncString(const FunctionCallbackInfo<Value>& args) {
-  Isolate* isolate = Isolate::GetCurrent();
-  HandleScope scope(isolate);
-
   Database *db = ObjectWrap::Unwrap<Database>(args.Holder());
   if (args.Length() < 1 || !args[0]->IsString()) {
     Nan::ThrowTypeError("Bad parameter");
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index