@@ -183,42 +183,6 @@ static void PushBackDestroyId(Environment* env, double id) {
183
183
}
184
184
185
185
186
- bool DomainEnter (Environment* env, Local<Object> object) {
187
- Local<Value> domain_v = object->Get (env->domain_string ());
188
- if (domain_v->IsObject ()) {
189
- Local<Object> domain = domain_v.As <Object>();
190
- if (domain->Get (env->disposed_string ())->IsTrue ())
191
- return true ;
192
- Local<Value> enter_v = domain->Get (env->enter_string ());
193
- if (enter_v->IsFunction ()) {
194
- if (enter_v.As <Function>()->Call (domain, 0 , nullptr ).IsEmpty ()) {
195
- FatalError (" node::AsyncWrap::MakeCallback" ,
196
- " domain enter callback threw, please report this" );
197
- }
198
- }
199
- }
200
- return false ;
201
- }
202
-
203
-
204
- bool DomainExit (Environment* env, v8::Local<v8::Object> object) {
205
- Local<Value> domain_v = object->Get (env->domain_string ());
206
- if (domain_v->IsObject ()) {
207
- Local<Object> domain = domain_v.As <Object>();
208
- if (domain->Get (env->disposed_string ())->IsTrue ())
209
- return true ;
210
- Local<Value> exit_v = domain->Get (env->exit_string ());
211
- if (exit_v->IsFunction ()) {
212
- if (exit_v.As <Function>()->Call (domain, 0 , nullptr ).IsEmpty ()) {
213
- FatalError (" node::AsyncWrap::MakeCallback" ,
214
- " domain exit callback threw, please report this" );
215
- }
216
- }
217
- }
218
- return false ;
219
- }
220
-
221
-
222
186
void AsyncWrap::EmitBefore (Environment* env, double async_id) {
223
187
AsyncHooks* async_hooks = env->async_hooks ();
224
188
0 commit comments