diff --git a/frameworks/include/shell_command.h b/frameworks/include/shell_command.h index ff4c143ae2107c1460350f1b56cb1f8b89a44531..57f7a7c28e52e84d23a04e927c03aa5792ce7dd4 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 5a36e68c5938bac0596a194eb5067d19fa0cec5d..842f1b1b716a6644cc8cff0e9176a2a21d8d4b22 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"); } }