From 39943e358019ebe2f4547eb929c80d9c481b13ef Mon Sep 17 00:00:00 2001 From: xionglei6 Date: Sat, 2 Apr 2022 10:45:20 +0800 Subject: [PATCH] fix: ondemand replace dynamic Signed-off-by: xionglei6 --- services/init/init_service_manager.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/services/init/init_service_manager.c b/services/init/init_service_manager.c index b0be5f31..f7120aee 100644 --- a/services/init/init_service_manager.c +++ b/services/init/init_service_manager.c @@ -584,20 +584,6 @@ static int ParseServiceFile(const cJSON *curArrItem, Service *curServ) return ret; } -static bool IsServiceInMainStrap(Service *curServ) -{ - char *mainServiceList[] = { - "appspawn", "udevd", "samgr", "multimodalinput", "weston", "installs", - "hiview", "hilogd", "hdf_devmgr", "distributedsche", "softbus_server", "foundation" - }; - unsigned int length = ARRAY_LENGTH(mainServiceList); - for (unsigned int i = 0; i < length; ++i) { - INIT_INFO_CHECK(strncmp(curServ->name, mainServiceList[i], strlen(mainServiceList[i])) != 0, return true, - "%s must be main service", curServ->name); - } - return false; -} - static int GetServiceOnDemand(const cJSON *curArrItem, Service *curServ) { cJSON *item = cJSON_GetObjectItem(curArrItem, "ondemand"); -- GitLab