@@ -61,7 +61,7 @@ namespace v8impl {
61
61
62
62
namespace {
63
63
64
- inline static napi_status V8NameFromPropertyDescriptor (
64
+ inline napi_status V8NameFromPropertyDescriptor (
65
65
napi_env env,
66
66
const napi_property_descriptor* p,
67
67
v8::Local<v8::Name>* result) {
@@ -79,7 +79,7 @@ inline static napi_status V8NameFromPropertyDescriptor(
79
79
}
80
80
81
81
// convert from n-api property attributes to v8::PropertyAttribute
82
- inline static v8::PropertyAttribute V8PropertyAttributesFromDescriptor (
82
+ inline v8::PropertyAttribute V8PropertyAttributesFromDescriptor (
83
83
const napi_property_descriptor* descriptor) {
84
84
unsigned int attribute_flags = v8::PropertyAttribute::None;
85
85
@@ -100,12 +100,12 @@ inline static v8::PropertyAttribute V8PropertyAttributesFromDescriptor(
100
100
return static_cast <v8::PropertyAttribute>(attribute_flags);
101
101
}
102
102
103
- inline static napi_deferred JsDeferredFromNodePersistent (
103
+ inline napi_deferred JsDeferredFromNodePersistent (
104
104
v8impl::Persistent<v8::Value>* local) {
105
105
return reinterpret_cast <napi_deferred>(local);
106
106
}
107
107
108
- inline static v8impl::Persistent<v8::Value>* NodePersistentFromJsDeferred (
108
+ inline v8impl::Persistent<v8::Value>* NodePersistentFromJsDeferred (
109
109
napi_deferred local) {
110
110
return reinterpret_cast <v8impl::Persistent<v8::Value>*>(local);
111
111
}
@@ -139,32 +139,30 @@ class EscapableHandleScopeWrapper {
139
139
bool escape_called_;
140
140
};
141
141
142
- inline static napi_handle_scope JsHandleScopeFromV8HandleScope (
143
- HandleScopeWrapper* s) {
142
+ inline napi_handle_scope JsHandleScopeFromV8HandleScope (HandleScopeWrapper* s) {
144
143
return reinterpret_cast <napi_handle_scope>(s);
145
144
}
146
145
147
- inline static HandleScopeWrapper* V8HandleScopeFromJsHandleScope (
148
- napi_handle_scope s) {
146
+ inline HandleScopeWrapper* V8HandleScopeFromJsHandleScope (napi_handle_scope s) {
149
147
return reinterpret_cast <HandleScopeWrapper*>(s);
150
148
}
151
149
152
- inline static napi_escapable_handle_scope
150
+ inline napi_escapable_handle_scope
153
151
JsEscapableHandleScopeFromV8EscapableHandleScope (
154
152
EscapableHandleScopeWrapper* s) {
155
153
return reinterpret_cast <napi_escapable_handle_scope>(s);
156
154
}
157
155
158
- inline static EscapableHandleScopeWrapper*
156
+ inline EscapableHandleScopeWrapper*
159
157
V8EscapableHandleScopeFromJsEscapableHandleScope (
160
158
napi_escapable_handle_scope s) {
161
159
return reinterpret_cast <EscapableHandleScopeWrapper*>(s);
162
160
}
163
161
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) {
168
166
NAPI_PREAMBLE (env);
169
167
CHECK_ARG (env, result);
170
168
@@ -191,10 +189,10 @@ inline static napi_status ConcludeDeferred(napi_env env,
191
189
192
190
enum UnwrapAction { KeepWrap, RemoveWrap };
193
191
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) {
198
196
NAPI_PREAMBLE (env);
199
197
CHECK_ARG (env, js_object);
200
198
if (action == KeepWrap) {
0 commit comments