From 6d4c305a02553111b6156c6b0fe43940b6e031c4 Mon Sep 17 00:00:00 2001 From: jiangminsen Date: Fri, 26 May 2023 19:19:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95bm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: jiangminsen --- frameworks/include/shell_command.h | 1 - frameworks/src/shell_command.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/frameworks/include/shell_command.h b/frameworks/include/shell_command.h index ff4c143..57f7a7c 100644 --- a/frameworks/include/shell_command.h +++ b/frameworks/include/shell_command.h @@ -27,7 +27,6 @@ namespace OHOS { namespace AppExecFwk { namespace { const std::string HELP_MSG_NO_OPTION = "error: you must specify an option at least."; -const std::string STRING_CODE = "code:"; const int OFFSET_REQUIRED_ARGUMENT = 2; } // namespace diff --git a/frameworks/src/shell_command.cpp b/frameworks/src/shell_command.cpp index 5a36e68..842f1b1 100644 --- a/frameworks/src/shell_command.cpp +++ b/frameworks/src/shell_command.cpp @@ -114,7 +114,6 @@ std::string ShellCommand::GetMessageFromCode(const int32_t code) const std::string message = messageMap_.at(code); if (message.size() != 0) { - result.append(STRING_CODE + std::to_string(code) + "\n"); result.append(message + "\n"); } } -- Gitee