From 52eedd77ee71618a5f8a549bad4332d09454c47b Mon Sep 17 00:00:00 2001 From: db <1301189887@qq.com> Date: Tue, 10 Dec 2024 16:53:18 +0800 Subject: [PATCH] use codeErr type --- src/Utilities/PublicHeader/include/crane/PublicHeader.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/Utilities/PublicHeader/include/crane/PublicHeader.h b/src/Utilities/PublicHeader/include/crane/PublicHeader.h index 824220e31..5d9a5dd0d 100644 --- a/src/Utilities/PublicHeader/include/crane/PublicHeader.h +++ b/src/Utilities/PublicHeader/include/crane/PublicHeader.h @@ -44,12 +44,6 @@ enum class CraneErr : uint16_t { kSystemErr, // represent the error which sets errno kExistingTask, kInvalidParam, - kInvalidUser, - kInvalidQos, - kInvalidTimeLimit, - kInvaildCpusperTask, - kInvaildNodeList, - kInvalidExNodeList, kStop, kPermissionDenied, @@ -225,7 +219,6 @@ const std::unordered_map ErrCodeStrMap = } - inline std::string_view CraneErrStr(CraneErr err) { return Internal::CraneErrStrArr[uint16_t(err)]; }