cocci: retire is_null_sha1() rule
Since 8d4d86b0 (cache: remove null_sha1, 2019-08-18) removed the is_null_sha1() function, rewrite rules to correct callers of the function to use is_null_oid() instead has become irrelevant, as any new callers of the function will get caught by the compiler much more quickly without spending cycles on Coccinelle. Remove these rules. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Jun 7, 2022 at 14:50 UTC
b1299de4a1e9a193db2bfeb23508250ebbe2d67b
1 file changed
-12
contrib/coccinelle/object_id.cocci
-12
@@ -1,15 +1,3 @@
1
-@@
2
-struct object_id OID;
3
-@@
4
-- is_null_sha1(OID.hash)
5
-+ is_null_oid(&OID)
6
-
7
-@@
8
-struct object_id *OIDPTR;
9
-@@
10
-- is_null_sha1(OIDPTR->hash)
11
-+ is_null_oid(OIDPTR)
12
-
1
@@
2
struct object_id OID;
3
@@