From 48c0fffeda39526ce19bf8c21a0bb5b9d0f04bb2 Mon Sep 17 00:00:00 2001 From: yejianghao Date: Wed, 8 Jan 2025 17:00:14 +0800 Subject: [PATCH] headerfile delete Issue: https://gitee.com/openharmony/arkcompiler_toolchain/issues/IBGBTT Change-Id: I80444b40bdf70f0681273e4dd114fcbcb889e48b Signed-off-by: yejianghao --- common/log_wrapper.cpp | 1 - inspector/connect_server.cpp | 2 -- inspector/inspector.cpp | 2 -- inspector/ws_server.cpp | 4 ---- tooling/agent/css_impl.cpp | 3 --- tooling/agent/debugger_impl.cpp | 6 ------ tooling/agent/dom_impl.cpp | 3 --- tooling/agent/overlay_impl.cpp | 5 ----- tooling/agent/page_impl.cpp | 3 --- tooling/agent/profiler_impl.cpp | 4 ---- tooling/agent/runtime_impl.cpp | 5 ----- tooling/agent/target_impl.cpp | 3 --- tooling/agent/tracing_impl.cpp | 3 --- tooling/backend/debugger_executor.cpp | 1 - tooling/backend/js_single_stepper.cpp | 1 - tooling/base/pt_script.cpp | 2 -- tooling/base/pt_types.cpp | 1 - tooling/client/ark_cli/main.cpp | 8 -------- tooling/client/ark_multi/main.cpp | 9 --------- tooling/client/domain/debugger_client.cpp | 7 ------- tooling/client/domain/heapprofiler_client.cpp | 5 ----- tooling/client/domain/profiler_client.cpp | 7 ------- tooling/client/domain/runtime_client.cpp | 5 ----- tooling/client/domain/test_client.cpp | 3 --- tooling/client/manager/breakpoint_manager.cpp | 2 -- tooling/client/manager/domain_manager.cpp | 3 --- tooling/client/manager/source_manager.cpp | 1 - tooling/client/manager/stack_manager.cpp | 2 -- tooling/client/manager/variable_manager.cpp | 4 ---- tooling/client/manager/watch_manager.cpp | 1 - tooling/client/session/session.cpp | 5 ----- tooling/client/utils/cli_command.cpp | 12 ------------ tooling/debugger_service.cpp | 1 - tooling/dispatcher.cpp | 1 - tooling/protocol_handler.cpp | 2 -- tooling/utils/utils.cpp | 4 ---- websocket/client/websocket_client.cpp | 5 ----- websocket/server/websocket_server.cpp | 2 -- websocket/websocket_base.cpp | 2 -- 39 files changed, 140 deletions(-) diff --git a/common/log_wrapper.cpp b/common/log_wrapper.cpp index e4ed0afe..5d74c57a 100644 --- a/common/log_wrapper.cpp +++ b/common/log_wrapper.cpp @@ -15,7 +15,6 @@ #include "common/log_wrapper.h" -#include #ifdef ANDROID_PLATFORM #include #else diff --git a/inspector/connect_server.cpp b/inspector/connect_server.cpp index 162b727e..eac6e2ee 100644 --- a/inspector/connect_server.cpp +++ b/inspector/connect_server.cpp @@ -14,8 +14,6 @@ */ #include "connect_server.h" -#include -#include #include #include "common/log_wrapper.h" #include "websocket/server/websocket_server.h" diff --git a/inspector/inspector.cpp b/inspector/inspector.cpp index dbbfe9bd..0988b350 100644 --- a/inspector/inspector.cpp +++ b/inspector/inspector.cpp @@ -15,7 +15,6 @@ #include "inspector.h" -#include #include #if defined(OHOS_PLATFORM) #include @@ -24,7 +23,6 @@ #if defined(OHOS_PLATFORM) #include #endif -#include #include "common/log_wrapper.h" #include "library_loader.h" diff --git a/inspector/ws_server.cpp b/inspector/ws_server.cpp index 0a77d285..744bdb5e 100644 --- a/inspector/ws_server.cpp +++ b/inspector/ws_server.cpp @@ -15,10 +15,6 @@ #include "ws_server.h" -#include -#include -#include -#include #include #include "common/log_wrapper.h" diff --git a/tooling/agent/css_impl.cpp b/tooling/agent/css_impl.cpp index 4d66b791..90f61903 100755 --- a/tooling/agent/css_impl.cpp +++ b/tooling/agent/css_impl.cpp @@ -15,9 +15,6 @@ #include "agent/css_impl.h" -#include "base/pt_events.h" -#include "protocol_channel.h" - namespace panda::ecmascript::tooling { void CssImpl::DispatcherImpl::Dispatch(const DispatchRequest &request) { diff --git a/tooling/agent/debugger_impl.cpp b/tooling/agent/debugger_impl.cpp index bceed3ce..54716095 100755 --- a/tooling/agent/debugger_impl.cpp +++ b/tooling/agent/debugger_impl.cpp @@ -16,17 +16,11 @@ #include "agent/debugger_impl.h" #include "tooling/base/pt_base64.h" -#include "tooling/base/pt_events.h" -#include "tooling/base/pt_params.h" -#include "tooling/base/pt_returns.h" -#include "tooling/base/pt_types.h" #include "backend/debugger_executor.h" -#include "dispatcher.h" #include "protocol_handler.h" #include "ecmascript/jspandafile/js_pandafile_manager.h" #include "ecmascript/napi/jsnapi_helper.h" -#include "ecmascript/tagged_array-inl.h" namespace panda::ecmascript::tooling { using namespace std::placeholders; diff --git a/tooling/agent/dom_impl.cpp b/tooling/agent/dom_impl.cpp index 8889d791..d9c04aef 100755 --- a/tooling/agent/dom_impl.cpp +++ b/tooling/agent/dom_impl.cpp @@ -15,9 +15,6 @@ #include "agent/dom_impl.h" -#include "base/pt_events.h" -#include "protocol_channel.h" - namespace panda::ecmascript::tooling { void DomImpl::DispatcherImpl::Dispatch(const DispatchRequest &request) { diff --git a/tooling/agent/overlay_impl.cpp b/tooling/agent/overlay_impl.cpp index f7eb48aa..1ed194d0 100755 --- a/tooling/agent/overlay_impl.cpp +++ b/tooling/agent/overlay_impl.cpp @@ -15,11 +15,6 @@ #include "agent/overlay_impl.h" -#include "base/pt_events.h" -#include "protocol_channel.h" - -#include "ecmascript/napi/include/dfx_jsnapi.h" - namespace panda::ecmascript::tooling { void OverlayImpl::DispatcherImpl::Dispatch(const DispatchRequest &request) { diff --git a/tooling/agent/page_impl.cpp b/tooling/agent/page_impl.cpp index db006ba0..5aab2847 100755 --- a/tooling/agent/page_impl.cpp +++ b/tooling/agent/page_impl.cpp @@ -15,9 +15,6 @@ #include "agent/page_impl.h" -#include "base/pt_events.h" -#include "protocol_channel.h" - namespace panda::ecmascript::tooling { void PageImpl::DispatcherImpl::Dispatch(const DispatchRequest &request) { diff --git a/tooling/agent/profiler_impl.cpp b/tooling/agent/profiler_impl.cpp index 6d1575f9..ab52343d 100644 --- a/tooling/agent/profiler_impl.cpp +++ b/tooling/agent/profiler_impl.cpp @@ -15,11 +15,7 @@ #include "agent/profiler_impl.h" -#include "tooling/base/pt_events.h" #include "protocol_channel.h" -#include "ecmascript/debugger/debugger_api.h" - -#include "ecmascript/napi/include/dfx_jsnapi.h" namespace panda::ecmascript::tooling { // Whenever adding a new protocol which is not a standard CDP protocol, diff --git a/tooling/agent/runtime_impl.cpp b/tooling/agent/runtime_impl.cpp index 4d58d1e2..2437a9d8 100644 --- a/tooling/agent/runtime_impl.cpp +++ b/tooling/agent/runtime_impl.cpp @@ -15,13 +15,8 @@ #include "agent/runtime_impl.h" -#include - -#include "tooling/base/pt_returns.h" #include "protocol_channel.h" -#include "ecmascript/napi/include/dfx_jsnapi.h" - namespace panda::ecmascript::tooling { // Whenever adding a new protocol which is not a standard CDP protocol, // must add its methodName to the runtimeProtocolsList diff --git a/tooling/agent/target_impl.cpp b/tooling/agent/target_impl.cpp index a84bc0b3..1923d9c6 100755 --- a/tooling/agent/target_impl.cpp +++ b/tooling/agent/target_impl.cpp @@ -15,9 +15,6 @@ #include "agent/target_impl.h" -#include "base/pt_events.h" -#include "protocol_channel.h" - namespace panda::ecmascript::tooling { void TargetImpl::DispatcherImpl::Dispatch(const DispatchRequest &request) { diff --git a/tooling/agent/tracing_impl.cpp b/tooling/agent/tracing_impl.cpp index ec418201..3fc1b28f 100644 --- a/tooling/agent/tracing_impl.cpp +++ b/tooling/agent/tracing_impl.cpp @@ -15,11 +15,8 @@ #include "agent/tracing_impl.h" -#include "tooling/base/pt_events.h" #include "protocol_channel.h" -#include "ecmascript/napi/include/dfx_jsnapi.h" - namespace panda::ecmascript::tooling { void TracingImpl::DispatcherImpl::Dispatch(const DispatchRequest &request) { diff --git a/tooling/backend/debugger_executor.cpp b/tooling/backend/debugger_executor.cpp index b27f92ce..c7d2a6c0 100644 --- a/tooling/backend/debugger_executor.cpp +++ b/tooling/backend/debugger_executor.cpp @@ -15,7 +15,6 @@ #include "backend/debugger_executor.h" -#include "ecmascript/debugger/debugger_api.h" #include "ecmascript/debugger/js_debugger_manager.h" #include "tooling/base/pt_types.h" diff --git a/tooling/backend/js_single_stepper.cpp b/tooling/backend/js_single_stepper.cpp index a2257eb0..440d9392 100644 --- a/tooling/backend/js_single_stepper.cpp +++ b/tooling/backend/js_single_stepper.cpp @@ -16,7 +16,6 @@ #include "backend/js_single_stepper.h" #include "ecmascript/debugger/debugger_api.h" -#include "ecmascript/jspandafile/debug_info_extractor.h" #include "ecmascript/jspandafile/js_pandafile_manager.h" namespace panda::ecmascript::tooling { diff --git a/tooling/base/pt_script.cpp b/tooling/base/pt_script.cpp index 60c66a08..79db193f 100644 --- a/tooling/base/pt_script.cpp +++ b/tooling/base/pt_script.cpp @@ -15,8 +15,6 @@ #include "tooling/base/pt_script.h" -#include "ecmascript/debugger/debugger_api.h" - namespace panda::ecmascript::tooling { PtScript::PtScript(ScriptId scriptId, const std::string &fileName, const std::string &url, const std::string &source) : scriptId_(scriptId), diff --git a/tooling/base/pt_types.cpp b/tooling/base/pt_types.cpp index a161ce9a..7bf2d88d 100644 --- a/tooling/base/pt_types.cpp +++ b/tooling/base/pt_types.cpp @@ -16,7 +16,6 @@ #include "tooling/base/pt_types.h" #include "ecmascript/napi/jsnapi_helper.h" #include "ecmascript/debugger/js_debugger.h" -#include "ecmascript/property_attributes.h" namespace panda::ecmascript::tooling { using ObjectType = RemoteObject::TypeName; diff --git a/tooling/client/ark_cli/main.cpp b/tooling/client/ark_cli/main.cpp index 5b82d80b..7e4cbb85 100644 --- a/tooling/client/ark_cli/main.cpp +++ b/tooling/client/ark_cli/main.cpp @@ -13,16 +13,8 @@ * limitations under the License. */ -#include -#include -#include -#include -#include -#include -#include #include "tooling/client/utils/cli_command.h" -#include "tooling/client/session/session.h" #include "tooling/client/tcpServer/tcp_server.h" #include "manager/message_manager.h" diff --git a/tooling/client/ark_multi/main.cpp b/tooling/client/ark_multi/main.cpp index 76b3c802..0cf44374 100644 --- a/tooling/client/ark_multi/main.cpp +++ b/tooling/client/ark_multi/main.cpp @@ -13,18 +13,9 @@ * limitations under the License. */ -#include -#include -#include -#include -#include - -#include #include -#include "ecmascript/base/string_helper.h" #include "ecmascript/js_runtime_options.h" -#include "ecmascript/napi/include/jsnapi.h" #include "ecmascript/platform/file.h" #include "tooling/utils/utils.h" #ifdef PANDA_TARGET_MACOS diff --git a/tooling/client/domain/debugger_client.cpp b/tooling/client/domain/debugger_client.cpp index 7c5612e8..0cf24c78 100644 --- a/tooling/client/domain/debugger_client.cpp +++ b/tooling/client/domain/debugger_client.cpp @@ -15,13 +15,6 @@ #include "tooling/client/domain/debugger_client.h" -#include - -#include "common/log_wrapper.h" -#include "tooling/client/manager/breakpoint_manager.h" -#include "tooling/client/manager/source_manager.h" -#include "tooling/client/manager/stack_manager.h" -#include "tooling/base/pt_json.h" #include "tooling/client/session/session.h" using PtJson = panda::ecmascript::tooling::PtJson; diff --git a/tooling/client/domain/heapprofiler_client.cpp b/tooling/client/domain/heapprofiler_client.cpp index 69b0cdf0..b8cd0a3f 100644 --- a/tooling/client/domain/heapprofiler_client.cpp +++ b/tooling/client/domain/heapprofiler_client.cpp @@ -14,13 +14,8 @@ */ #include "tooling/client/domain/heapprofiler_client.h" -#include "common/log_wrapper.h" -#include "tooling/utils/utils.h" #include "tooling/client/session/session.h" -#include -#include -#include using Result = panda::ecmascript::tooling::Result; namespace OHOS::ArkCompiler::Toolchain { diff --git a/tooling/client/domain/profiler_client.cpp b/tooling/client/domain/profiler_client.cpp index 6b98d7a4..29589e2a 100644 --- a/tooling/client/domain/profiler_client.cpp +++ b/tooling/client/domain/profiler_client.cpp @@ -14,15 +14,8 @@ */ #include "tooling/client/domain/profiler_client.h" -#include "tooling/base/pt_types.h" -#include "common/log_wrapper.h" -#include "tooling/utils/utils.h" #include "tooling/client/session/session.h" -#include -#include -#include -#include using Result = panda::ecmascript::tooling::Result; using Profile = panda::ecmascript::tooling::Profile; diff --git a/tooling/client/domain/runtime_client.cpp b/tooling/client/domain/runtime_client.cpp index 1e26b8e1..a46c1bc6 100644 --- a/tooling/client/domain/runtime_client.cpp +++ b/tooling/client/domain/runtime_client.cpp @@ -15,12 +15,7 @@ #include "tooling/client/domain/runtime_client.h" -#include "common/log_wrapper.h" -#include "tooling/client/manager/variable_manager.h" -#include "tooling/client/manager/watch_manager.h" -#include "tooling/base/pt_json.h" #include "tooling/client/session/session.h" -#include "tooling/utils/utils.h" using PtJson = panda::ecmascript::tooling::PtJson; namespace OHOS::ArkCompiler::Toolchain { diff --git a/tooling/client/domain/test_client.cpp b/tooling/client/domain/test_client.cpp index 40439be0..cc09b5bb 100644 --- a/tooling/client/domain/test_client.cpp +++ b/tooling/client/domain/test_client.cpp @@ -15,9 +15,6 @@ #include "tooling/client/domain/test_client.h" -#include "common/log_wrapper.h" -#include "tooling/client/manager/variable_manager.h" -#include "tooling/base/pt_json.h" #include "tooling/client/session/session.h" using PtJson = panda::ecmascript::tooling::PtJson; diff --git a/tooling/client/manager/breakpoint_manager.cpp b/tooling/client/manager/breakpoint_manager.cpp index 58e29488..f6df7c61 100644 --- a/tooling/client/manager/breakpoint_manager.cpp +++ b/tooling/client/manager/breakpoint_manager.cpp @@ -15,8 +15,6 @@ #include "tooling/client/manager/breakpoint_manager.h" -#include "common/log_wrapper.h" -#include "tooling/utils/utils.h" #include "tooling/client/session/session.h" using PtJson = panda::ecmascript::tooling::PtJson; diff --git a/tooling/client/manager/domain_manager.cpp b/tooling/client/manager/domain_manager.cpp index 16981052..a5d8467f 100644 --- a/tooling/client/manager/domain_manager.cpp +++ b/tooling/client/manager/domain_manager.cpp @@ -15,9 +15,6 @@ #include "domain_manager.h" -#include "common/log_wrapper.h" -#include "tooling/client/manager/breakpoint_manager.h" -#include "tooling/base/pt_json.h" #include "tooling/client/session/session.h" using PtJson = panda::ecmascript::tooling::PtJson; diff --git a/tooling/client/manager/source_manager.cpp b/tooling/client/manager/source_manager.cpp index 7657b209..fd621b43 100644 --- a/tooling/client/manager/source_manager.cpp +++ b/tooling/client/manager/source_manager.cpp @@ -15,7 +15,6 @@ #include "tooling/client/manager/source_manager.h" -#include "common/log_wrapper.h" #include "tooling/client/session/session.h" using PtJson = panda::ecmascript::tooling::PtJson; diff --git a/tooling/client/manager/stack_manager.cpp b/tooling/client/manager/stack_manager.cpp index a9940cb5..7a5fb7cb 100644 --- a/tooling/client/manager/stack_manager.cpp +++ b/tooling/client/manager/stack_manager.cpp @@ -14,8 +14,6 @@ */ #include "tooling/client/manager/stack_manager.h" -#include "common/log_wrapper.h" -#include "tooling/client/session/session.h" namespace OHOS::ArkCompiler::Toolchain { void StackManager::SetCallFrames(std::map> callFrames) diff --git a/tooling/client/manager/variable_manager.cpp b/tooling/client/manager/variable_manager.cpp index f7b7b47a..2812ecf0 100644 --- a/tooling/client/manager/variable_manager.cpp +++ b/tooling/client/manager/variable_manager.cpp @@ -15,10 +15,6 @@ #include "tooling/client/manager/variable_manager.h" -#include - -#include "common/log_wrapper.h" - using PtJson = panda::ecmascript::tooling::PtJson; namespace OHOS::ArkCompiler::Toolchain { void TreeNode::AddChild(std::unique_ptr descriptor) diff --git a/tooling/client/manager/watch_manager.cpp b/tooling/client/manager/watch_manager.cpp index ffa59852..49191e70 100644 --- a/tooling/client/manager/watch_manager.cpp +++ b/tooling/client/manager/watch_manager.cpp @@ -15,7 +15,6 @@ #include "tooling/client/manager/watch_manager.h" -#include "common/log_wrapper.h" #include "tooling/client/session/session.h" using PtJson = panda::ecmascript::tooling::PtJson; diff --git a/tooling/client/session/session.cpp b/tooling/client/session/session.cpp index 1069ad9d..db690148 100755 --- a/tooling/client/session/session.cpp +++ b/tooling/client/session/session.cpp @@ -15,12 +15,7 @@ #include "tooling/client/session/session.h" -#include "common/log_wrapper.h" #include "tooling/client/manager/message_manager.h" -#include "tooling/base/pt_json.h" -#include "tooling/utils/utils.h" - -#include using PtJson = panda::ecmascript::tooling::PtJson; using Result = panda::ecmascript::tooling::Result; diff --git a/tooling/client/utils/cli_command.cpp b/tooling/client/utils/cli_command.cpp index 3abf2751..8747800b 100644 --- a/tooling/client/utils/cli_command.cpp +++ b/tooling/client/utils/cli_command.cpp @@ -15,18 +15,6 @@ #include "tooling/client/utils/cli_command.h" -#include -#include - -#include "tooling/client/domain/debugger_client.h" -#include "tooling/client/domain/runtime_client.h" -#include "common/log_wrapper.h" -#include "tooling/client/manager/breakpoint_manager.h" -#include "tooling/client/manager/domain_manager.h" -#include "tooling/client/manager/stack_manager.h" -#include "tooling/client/manager/variable_manager.h" -#include "tooling/client/session/session.h" - namespace OHOS::ArkCompiler::Toolchain { const std::string HELP_MSG = "usage: \n" " These are common commands list:\n" diff --git a/tooling/debugger_service.cpp b/tooling/debugger_service.cpp index b9b24887..86afa0a4 100644 --- a/tooling/debugger_service.cpp +++ b/tooling/debugger_service.cpp @@ -18,7 +18,6 @@ #include "protocol_handler.h" #include "ecmascript/debugger/js_debugger_manager.h" -#include "ecmascript/ecma_vm.h" namespace panda::ecmascript::tooling { void InitializeDebugger(::panda::ecmascript::EcmaVM *vm, diff --git a/tooling/dispatcher.cpp b/tooling/dispatcher.cpp index f25842e2..708d80b1 100644 --- a/tooling/dispatcher.cpp +++ b/tooling/dispatcher.cpp @@ -16,7 +16,6 @@ #include "dispatcher.h" #include "agent/debugger_impl.h" -#include "agent/runtime_impl.h" #ifdef ECMASCRIPT_SUPPORT_HEAPPROFILER #include "agent/heapprofiler_impl.h" #endif diff --git a/tooling/protocol_handler.cpp b/tooling/protocol_handler.cpp index 4a370c8f..dd031867 100644 --- a/tooling/protocol_handler.cpp +++ b/tooling/protocol_handler.cpp @@ -15,8 +15,6 @@ #include "protocol_handler.h" -#include "agent/debugger_impl.h" - namespace panda::ecmascript::tooling { void ProtocolHandler::WaitForDebugger() { diff --git a/tooling/utils/utils.cpp b/tooling/utils/utils.cpp index 9ede2c6b..c49c5117 100644 --- a/tooling/utils/utils.cpp +++ b/tooling/utils/utils.cpp @@ -12,11 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -#include #include -#include -#include #include "common/log_wrapper.h" #include "tooling/utils/utils.h" diff --git a/websocket/client/websocket_client.cpp b/websocket/client/websocket_client.cpp index 4900c6cf..3a151955 100644 --- a/websocket/client/websocket_client.cpp +++ b/websocket/client/websocket_client.cpp @@ -13,16 +13,11 @@ * limitations under the License. */ -#include -#include #include -#include -#include #include "common/log_wrapper.h" #include "frame_builder.h" #include "handshake_helper.h" -#include "network.h" #include "string_utils.h" #include "client/websocket_client.h" diff --git a/websocket/server/websocket_server.cpp b/websocket/server/websocket_server.cpp index d9532150..c2278618 100644 --- a/websocket/server/websocket_server.cpp +++ b/websocket/server/websocket_server.cpp @@ -23,11 +23,9 @@ #include "common/log_wrapper.h" #include "frame_builder.h" #include "handshake_helper.h" -#include "network.h" #include "server/websocket_server.h" #include "string_utils.h" -#include #include namespace OHOS::ArkCompiler::Toolchain { diff --git a/websocket/websocket_base.cpp b/websocket/websocket_base.cpp index e9f4cac0..a9279249 100644 --- a/websocket/websocket_base.cpp +++ b/websocket/websocket_base.cpp @@ -19,8 +19,6 @@ #include "network.h" #include "websocket_base.h" -#include - namespace OHOS::ArkCompiler::Toolchain { static std::string ToString(CloseStatusCode status) { -- Gitee