Message ID | 20220719132809.409247-6-shaoxuan.yuan02@gmail.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | mv: from in-cone to out-of-cone | expand |
On 7/19/2022 9:28 AM, Shaoxuan Yuan wrote: > Since BOTH is not practically used anywhere in the code and its meaning > is unclear, remove it. It's literally not used any where. (I would just drop "practically".) Also, now that enum update_mode is a flag-based enum, the 0 value cannot have any meaning to it except "none of the other flags are on". Thanks, -Stolee
diff --git a/builtin/mv.c b/builtin/mv.c index 2e9d577227..d05914a233 100644 --- a/builtin/mv.c +++ b/builtin/mv.c @@ -21,7 +21,6 @@ static const char * const builtin_mv_usage[] = { }; enum update_mode { - BOTH = 0, WORKING_DIRECTORY = (1 << 1), INDEX = (1 << 2), SPARSE = (1 << 3),
Since BOTH is not practically used anywhere in the code and its meaning is unclear, remove it. Signed-off-by: Shaoxuan Yuan <shaoxuan.yuan02@gmail.com> --- builtin/mv.c | 1 - 1 file changed, 1 deletion(-)