@@ -61,7 +61,7 @@ namespace v8impl {
6161
6262namespace {
6363
64- inline static napi_status V8NameFromPropertyDescriptor (
64+ inline napi_status V8NameFromPropertyDescriptor (
6565 napi_env env,
6666 const napi_property_descriptor* p,
6767 v8::Local<v8::Name>* result) {
@@ -79,7 +79,7 @@ inline static napi_status V8NameFromPropertyDescriptor(
7979}
8080
8181// convert from n-api property attributes to v8::PropertyAttribute
82- inline static v8::PropertyAttribute V8PropertyAttributesFromDescriptor (
82+ inline v8::PropertyAttribute V8PropertyAttributesFromDescriptor (
8383 const napi_property_descriptor* descriptor) {
8484 unsigned int attribute_flags = v8::PropertyAttribute::None;
8585
@@ -100,12 +100,12 @@ inline static v8::PropertyAttribute V8PropertyAttributesFromDescriptor(
100100 return static_cast <v8::PropertyAttribute>(attribute_flags);
101101}
102102
103- inline static napi_deferred JsDeferredFromNodePersistent (
103+ inline napi_deferred JsDeferredFromNodePersistent (
104104 v8impl::Persistent<v8::Value>* local) {
105105 return reinterpret_cast <napi_deferred>(local);
106106}
107107
108- inline static v8impl::Persistent<v8::Value>* NodePersistentFromJsDeferred (
108+ inline v8impl::Persistent<v8::Value>* NodePersistentFromJsDeferred (
109109 napi_deferred local) {
110110 return reinterpret_cast <v8impl::Persistent<v8::Value>*>(local);
111111}
@@ -139,32 +139,30 @@ class EscapableHandleScopeWrapper {
139139 bool escape_called_;
140140};
141141
142- inline static napi_handle_scope JsHandleScopeFromV8HandleScope (
143- HandleScopeWrapper* s) {
142+ inline napi_handle_scope JsHandleScopeFromV8HandleScope (HandleScopeWrapper* s) {
144143 return reinterpret_cast <napi_handle_scope>(s);
145144}
146145
147- inline static HandleScopeWrapper* V8HandleScopeFromJsHandleScope (
148- napi_handle_scope s) {
146+ inline HandleScopeWrapper* V8HandleScopeFromJsHandleScope (napi_handle_scope s) {
149147 return reinterpret_cast <HandleScopeWrapper*>(s);
150148}
151149
152- inline static napi_escapable_handle_scope
150+ inline napi_escapable_handle_scope
153151JsEscapableHandleScopeFromV8EscapableHandleScope (
154152 EscapableHandleScopeWrapper* s) {
155153 return reinterpret_cast <napi_escapable_handle_scope>(s);
156154}
157155
158- inline static EscapableHandleScopeWrapper*
156+ inline EscapableHandleScopeWrapper*
159157V8EscapableHandleScopeFromJsEscapableHandleScope (
160158 napi_escapable_handle_scope s) {
161159 return reinterpret_cast <EscapableHandleScopeWrapper*>(s);
162160}
163161
164- inline static napi_status ConcludeDeferred (napi_env env,
165- napi_deferred deferred,
166- napi_value result,
167- bool is_resolved) {
162+ inline napi_status ConcludeDeferred (napi_env env,
163+ napi_deferred deferred,
164+ napi_value result,
165+ bool is_resolved) {
168166 NAPI_PREAMBLE (env);
169167 CHECK_ARG (env, result);
170168
@@ -191,10 +189,10 @@ inline static napi_status ConcludeDeferred(napi_env env,
191189
192190enum UnwrapAction { KeepWrap, RemoveWrap };
193191
194- inline static napi_status Unwrap (napi_env env,
195- napi_value js_object,
196- void ** result,
197- UnwrapAction action) {
192+ inline napi_status Unwrap (napi_env env,
193+ napi_value js_object,
194+ void ** result,
195+ UnwrapAction action) {
198196 NAPI_PREAMBLE (env);
199197 CHECK_ARG (env, js_object);
200198 if (action == KeepWrap) {
0 commit comments