From 3732a67c343f8a7f6dbe71ec253fb2f0a8051c1a Mon Sep 17 00:00:00 2001 From: Tianshi Liu Date: Sat, 26 Mar 2022 16:31:40 +0800 Subject: [PATCH] remove unused enum Signed-off-by: Tianshi Liu Change-Id: Ib5bd9e6a8c24bbe0f44d0876a4b7549ed9869020 --- services/common/include/constant.h | 85 ------------------------------ services/common/src/constant.cpp | 10 ---- 2 files changed, 95 deletions(-) diff --git a/services/common/include/constant.h b/services/common/include/constant.h index e91c684..76b2a9d 100644 --- a/services/common/include/constant.h +++ b/services/common/include/constant.h @@ -25,91 +25,6 @@ namespace UserIAM { namespace FaceAuth { class Constant { public: - enum ServiceId { - SUBSYS_AAFWK_SYS_ABILITY_ID_BEGIN = 100, - ABILITY_TOOLS_SERVICE_ID = 116, - ABILITY_TEST_SERVICE_ID = 179, - ABILITY_MGR_SERVICE_ID = 180, - ABILITY_MST_SERVICE_ID = 181, - SUBSYS_AAFWK_SYS_ABILITY_ID_END = 199, - SUBSYS_ACCOUNT_SYS_ABILITY_ID_BEGIN = 200, - SUBSYS_AI_SYS_ABILITY_ID_BEGIN = 300, - SUBSYS_APPEXECFWK_SYS_ABILITY_ID_BEGIN = 400, - BUNDLE_MGR_SERVICE_SYS_ABILITY_ID = 401, - SUBSYS_APPLICATIONS_SYS_ABILITY_ID_BEGIN = 500, - APP_MGR_SERVICE_ID = 501, - INSTALLED_SERVICE_ID = 511, - SUBSYS_ARVR_SYS_ABILITY_ID_BEGIN = 600, - SUBSYS_ARVRHARDWARE_SYS_ABILITY_ID_BEGIN = 700, - SUBSYS_BARRIERFREE_SYS_ABILITY_ID_BEGIN = 800, - SUBSYS_FACEAUTHS_SYS_ABILITY_ID_BEGIN = 900, - SUBSYS_FACEAUTHS_SYS_ABILITY_FACERECOGNIZE = 901, - SUBSYS_FACEAUTHS_SYS_ABILITY_FINGERPRINT = 902, - SUBSYS_FACEAUTHS_SYS_ABILITY_VOICEID = 903, - ADVANCED_NOTIFICATION_SERVICE_ABILITY_ID = 3203, - SUBSYS_SECURITY_PERMISSION_SYS_SERVICE_ID = 3501, - }; - - /** - * Status code, indicates general success. - */ - const static int32_t SUCCESS = 0; - - /** - * Status code, indicates general failure. - */ - const static int32_t FAILURE = -1; - - /** - * Status code, indicates JS general failure. - */ - const static int32_t JS_FAILURE = 1; - - /** - * Callback code. - */ - const static int32_t CODE_RESULT = 1; - const static int32_t CODE_CANCEL = 2; - const static int32_t CODE_ACQUIRE = 3; - const static int32_t CODE_BUSY = 4; - - /** - * Callback type. - */ - const static int32_t TYPE_ENROLL = 0; - const static int32_t TYPE_AUTH = 1; - const static int32_t TYPE_REMOVE = 2; - - /** - * Authentication type. - */ - static const std::string FACE_ONLY; - static const std::string ALL; - static const std::string APP_PERMISSION_TYPE; - - /** - * Authentication level. - */ - static const std::string LEVEL_1; - static const std::string LEVEL_2; - static const std::string LEVEL_3; - static const std::string LEVEL_4; - - /** - * GetLocalDeviceId - */ - static std::string GetLocalDeviceId(); - - /** - * Authentication permission name - */ - const static std::string ACCESS_PERMISSION_NAME; - - /** - * Enroll permission name - */ - const static std::string ENROLL_PERMISSION_NAME; - /** * Code and errorCode translate into tipCode. */ diff --git a/services/common/src/constant.cpp b/services/common/src/constant.cpp index 7155814..177d6ec 100644 --- a/services/common/src/constant.cpp +++ b/services/common/src/constant.cpp @@ -18,16 +18,6 @@ namespace OHOS { namespace UserIAM { namespace FaceAuth { -const std::string Constant::FACE_ONLY = "FACE_ONLY"; -const std::string Constant::ALL = "ALL"; -const std::string Constant::APP_PERMISSION_TYPE = "app"; -const std::string Constant::LEVEL_1 = "S1"; -const std::string Constant::LEVEL_2 = "S2"; -const std::string Constant::LEVEL_3 = "S3"; -const std::string Constant::LEVEL_4 = "S4"; -const std::string Constant::ACCESS_PERMISSION_NAME = "ohos.permission.ACCESS_BIOMETRIC"; -const std::string Constant::ENROLL_PERMISSION_NAME = "ohos.permission.ENROLL_BIOMETRIC"; - const std::map Constant::TIP_CODE_MAP = { std::map::value_type("1+-1", -1), // code 1, errorCode -1, means tipCode NO_SUPPORT(-1) std::map::value_type("1+0", 0), // code 1, errorCode 0, means tipCode SUCCESS(0)