From aabd37cb3cc60b5041e81de633a2a3e83bd08369 Mon Sep 17 00:00:00 2001 From: MoneroOcean Date: Sun, 25 Mar 2018 03:30:11 +0200 Subject: [PATCH] Revert "Fixed scopes" This reverts commit e46bad291ebd7412d2bbfacc0fe5a141a2fcdbf9. --- src/main.cc | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/main.cc b/src/main.cc index 8c1b771..b1e4fc0 100644 --- a/src/main.cc +++ b/src/main.cc @@ -72,8 +72,6 @@ static bool construct_parent_block(const cryptonote::block& b, cryptonote::block } NAN_METHOD(convert_blob) { - NanScope(); - if (info.Length() < 1) return THROW_ERROR_EXCEPTION("You must provide one argument."); Local target = info[0]->ToObject(); @@ -99,8 +97,6 @@ NAN_METHOD(convert_blob) { } NAN_METHOD(get_block_id) { - NanScope(); - if (info.Length() < 1) return THROW_ERROR_EXCEPTION("You must provide one argument."); Local target = info[0]->ToObject(); @@ -120,8 +116,6 @@ NAN_METHOD(get_block_id) { } NAN_METHOD(construct_block_blob) { - NanScope(); - if (info.Length() < 2) return THROW_ERROR_EXCEPTION("You must provide two arguments."); Local block_template_buf = info[0]->ToObject(); @@ -152,9 +146,8 @@ NAN_METHOD(construct_block_blob) { NanReturnValue(NanNewBufferHandle(output.data(), output.size())); } -NAN_METHOD(address_decode) { - NanEscapableScope(); +NAN_METHOD(address_decode) { if (info.Length() < 1) return THROW_ERROR_EXCEPTION("You must provide one argument."); Local target = info[0]->ToObject(); @@ -178,8 +171,6 @@ NAN_METHOD(address_decode) { } NAN_METHOD(address_decode_integrated) { - NanEscapableScope(); - if (info.Length() < 1) return THROW_ERROR_EXCEPTION("You must provide one argument."); Local target = info[0]->ToObject();