@@ -160,7 +160,6 @@ using v8::Object;
160160using v8::ObjectTemplate;
161161using v8::Promise;
162162using v8::PropertyAttribute;
163- using v8::PropertyCallbackInfo;
164163using v8::ReadOnly;
165164using v8::Script;
166165using v8::ScriptCompiler;
@@ -1733,32 +1732,6 @@ static Local<Object> GetFeatures(Environment* env) {
17331732 return scope.Escape (obj);
17341733}
17351734
1736-
1737- static void DebugPortGetter (Local<Name> property,
1738- const PropertyCallbackInfo<Value>& info) {
1739- Environment* env = Environment::GetCurrent (info);
1740- Mutex::ScopedLock lock (process_mutex);
1741- int port = env->options ()->debug_options ->port ();
1742- #if HAVE_INSPECTOR
1743- if (port == 0 ) {
1744- if (auto io = env->inspector_agent ()->io ())
1745- port = io->port ();
1746- }
1747- #endif // HAVE_INSPECTOR
1748- info.GetReturnValue ().Set (port);
1749- }
1750-
1751-
1752- static void DebugPortSetter (Local<Name> property,
1753- Local<Value> value,
1754- const PropertyCallbackInfo<void >& info) {
1755- Environment* env = Environment::GetCurrent (info);
1756- Mutex::ScopedLock lock (process_mutex);
1757- env->options ()->debug_options ->host_port .port =
1758- value->Int32Value (env->context ()).FromMaybe (0 );
1759- }
1760-
1761-
17621735static void DebugProcess (const FunctionCallbackInfo<Value>& args);
17631736static void DebugEnd (const FunctionCallbackInfo<Value>& args);
17641737
0 commit comments