{"thread":{"id":"52251","subject":"[PATCH] coccinelle: delete an unused variable in two rules from the_repository.pending.cocci","startedAt":"2019-11-12T20:41:01Z","lastAt":"2019-11-12T20:41:01Z","messageCount":1,"participants":["Markus Elfring"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"386045","messageId":"22b15b44-2679-6e10-c2f1-458e09a707f3@web.de","threadId":"52251","inReplyTo":null,"subject":"[PATCH] coccinelle: delete an unused variable in two rules from the_repository.pending.cocci","fromName":"Markus Elfring","fromEmail":"markus.elfring@web.de","sentAt":"2019-11-12T20:40:54Z","receivedAt":"2019-11-12T20:41:01Z","isPatch":true,"sender":{"key":"markus.elfring@web.de","avatar":null},"body":"From: Markus Elfring <elfring@users.sourceforge.net>\nDate: Tue, 12 Nov 2019 21:35:36 +0100\n\nThis script contained two transformation rules for the semantic patch language\nwhere a metavariable was declared but not used then.\nThus remove this superfluous variable “F”.\n\nSigned-off-by: Markus Elfring <elfring@users.sourceforge.net>\n---\n contrib/coccinelle/the_repository.pending.cocci | 2 --\n 1 file changed, 2 deletions(-)\n\ndiff --git a/contrib/coccinelle/the_repository.pending.cocci b/contrib/coccinelle/the_repository.pending.cocci\nindex 2ee702ecf7..ff6a6a575a 100644\n--- a/contrib/coccinelle/the_repository.pending.cocci\n+++ b/contrib/coccinelle/the_repository.pending.cocci\n@@ -20,7 +20,6 @@ expression E;\n\n @@\n expression E;\n-expression F;\n @@\n - has_sha1_file_with_flags(\n + repo_has_sha1_file_with_flags(the_repository,\n@@ -35,7 +34,6 @@ expression E;\n\n @@\n expression E;\n-expression F;\n @@\n - has_object_file_with_flags(\n + repo_has_object_file_with_flags(the_repository,\n--\n2.24.0\n\n"}]}