Remove chef_forbid_local_mode()

This commit is contained in:
Aoran Zeng
2025-08-11 03:06:53 +08:00
parent 492ca4288c
commit 52004a1033
6 changed files with 11 additions and 15 deletions

View File

@@ -51,19 +51,15 @@ chef_allow_local_mode (Target_t *target, Capability_t cap, const char *explain_z
return;
}
if (cap == CanNot)
{
target->cap_local_explain = xy_strdup (CHINESE ? "无法进行项目级换源" : "Unable to perform project-level source switching");
return;
}
target->cap_local_explain = xy_strdup (CHINESE ? explain_zh : explain_en);
}
void
chef_forbid_local_mode (Target_t *target)
{
if (!target)
return;
target->cap_local = CanNot;
target->cap_local_explain = xy_strdup (CHINESE ? "无法进行项目级换源" : "Unable to perform project-level source switching");
}
void
chef_allow_user_define (Target_t *target)