@@ -160,7 +160,6 @@ using v8::Object;
160
160
using v8::ObjectTemplate;
161
161
using v8::Promise;
162
162
using v8::PropertyAttribute;
163
- using v8::PropertyCallbackInfo;
164
163
using v8::ReadOnly;
165
164
using v8::Script;
166
165
using v8::ScriptCompiler;
@@ -1733,32 +1732,6 @@ static Local<Object> GetFeatures(Environment* env) {
1733
1732
return scope.Escape (obj);
1734
1733
}
1735
1734
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
-
1762
1735
static void DebugProcess (const FunctionCallbackInfo<Value>& args);
1763
1736
static void DebugEnd (const FunctionCallbackInfo<Value>& args);
1764
1737
0 commit comments