Skip to content

Commit 7da5021

Browse files
author
Mihail Slavchev
committed
remove old code
1 parent 9fab963 commit 7da5021

3 files changed

Lines changed: 0 additions & 15 deletions

File tree

src/jni/JsDebugger.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ void JsDebugger::Init(v8::Isolate *isolate, const string& packageName)
2323
assert(s_EnqueueMessage != nullptr);
2424
}
2525

26-
int JsDebugger::GetDebuggerPort()
27-
{
28-
return s_port;
29-
}
30-
3126
string JsDebugger::GetPackageName()
3227
{
3328
return s_packageName;
@@ -88,7 +83,6 @@ void JsDebugger::SendCommand(uint16_t *cmd, int length)
8883
}
8984

9085
v8::Isolate* JsDebugger::s_isolate = nullptr;
91-
int JsDebugger::s_port = JsDebugger::INVALID_PORT;
9286
string JsDebugger::s_packageName = "";
9387
jclass JsDebugger::s_JsDebuggerClass = nullptr;
9488
jmethodID JsDebugger::s_EnqueueMessage = nullptr;

src/jni/JsDebugger.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ namespace tns
2121

2222
static void DebugBreak();
2323

24-
static int GetDebuggerPort();
25-
2624
static std::string GetPackageName();
2725

2826
static void SendCommand(uint16_t *cmd, int length);
@@ -32,7 +30,6 @@ namespace tns
3230

3331
static void MyMessageHandler(const v8::Debug::Message& message);
3432

35-
static int s_port;
3633
static std::string s_packageName;
3734
static jclass s_JsDebuggerClass;
3835
static jmethodID s_EnqueueMessage;

src/jni/com_tns_Platform.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -229,12 +229,6 @@ extern "C" void Java_com_tns_Platform_runNativeScript(JNIEnv *_env, jobject obj,
229229
{
230230
DEBUG_WRITE("Running script");
231231

232-
int debuggerPort = JsDebugger::GetDebuggerPort();
233-
if (debuggerPort > 0)
234-
{
235-
JsDebugger::Enable();
236-
}
237-
238232
auto appModuleObj = script->Run();
239233
if (ExceptionUtil::GetInstance()->HandleTryCatch(tc))
240234
{

0 commit comments

Comments
 (0)