mirror of
https://github.com/RubyMetric/chsrc
synced 2026-02-27 09:31:29 +08:00
Remove chef_forbid_local_mode()
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user