diff --git a/services/bundlemgr/src/bundle_user_mgr_host_impl.cpp b/services/bundlemgr/src/bundle_user_mgr_host_impl.cpp index b95618ef769b3aa3365b67808b05b81fd5d136a6..98d7058a8818ae9ebd78e01bbf476d615a013d01 100644 --- a/services/bundlemgr/src/bundle_user_mgr_host_impl.cpp +++ b/services/bundlemgr/src/bundle_user_mgr_host_impl.cpp @@ -196,10 +196,6 @@ void BundleUserMgrHostImpl::OnCreateNewUser(int32_t userId, bool needToSkipPreBu if (dataMgr->HasUserId(userId)) { APP_LOGE("Has create user %{public}d", userId); - ErrCode ret = InnerRemoveUser(userId, false); // no need lock - if (ret != ERR_OK) { - APP_LOGW("remove user %{public}d failed, error %{public}d", userId, ret); - } } dataMgr->AddUserId(userId);