- Remove call to DartDebugger::InitDebugger in InitDartVM (flutter/engine#4167)

- Remove linking of dart_debugger.cc as this is not used
(all debugging is done using the service API, this debugger implementation uses the deprecated dart debugger API)
This commit is contained in:
Siva
2017-10-03 16:49:43 -07:00
committed by GitHub
parent 6b506e5dd2
commit 255bbb2a55
3 changed files with 0 additions and 14 deletions

View File

@@ -95,10 +95,6 @@ source_set("runtime") {
defines += [ "EMBED_TEST_FONT_DATA=1" ]
}
if (flutter_runtime_mode != "release") {
deps += [ "//topaz/lib/tonic/debugger" ]
}
# In AOT mode, precompiled snapshots contain the instruction buffer.
# Generation of the same requires all application specific script code to be
# specified up front. In such cases, there can be no generic snapshot.

View File

@@ -22,7 +22,6 @@
#include "lib/tonic/dart_message_handler.h"
#include "lib/tonic/dart_state.h"
#include "lib/tonic/dart_wrappable.h"
#include "lib/tonic/debugger/dart_debugger.h"
#include "lib/tonic/file_loader/file_loader.h"
#include "lib/tonic/logging/dart_error.h"
#include "lib/tonic/logging/dart_invoke.h"

View File

@@ -36,7 +36,6 @@
#include "lib/tonic/dart_state.h"
#include "lib/tonic/dart_sticky_error.h"
#include "lib/tonic/dart_wrappable.h"
#include "lib/tonic/debugger/dart_debugger.h"
#include "lib/tonic/file_loader/file_loader.h"
#include "lib/tonic/logging/dart_error.h"
#include "lib/tonic/logging/dart_invoke.h"
@@ -538,14 +537,6 @@ void InitDartVM(const uint8_t* vm_snapshot_data,
FXL_CHECK(Dart_SetVMFlags(args.size(), args.data()));
#if FLUTTER_RUNTIME_MODE != FLUTTER_RUNTIME_MODE_RELEASE
if (!IsRunningPrecompiledCode()) {
TRACE_EVENT0("flutter", "DartDebugger::InitDebugger");
// This should be called before calling Dart_Initialize.
tonic::DartDebugger::InitDebugger();
}
#endif
DartUI::InitForGlobal();
// Setup embedder tracing hooks. To avoid data races, it is recommended that