From 974f99482cc54fdc9be1623569c46e4be569ebd6 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Wed, 9 Aug 2023 18:21:15 +1000 Subject: [PATCH] renesas-ra/boards: Remove unreachable code in make-pins.py. Looks like copy-paste from the stm32 make-pins.py, references a function that is not present in the renesas-ra version. Found by Ruff checking F821. Signed-off-by: Angus Gratton --- ports/renesas-ra/boards/make-pins.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ports/renesas-ra/boards/make-pins.py b/ports/renesas-ra/boards/make-pins.py index 1b4588f02f..5147d27940 100644 --- a/ports/renesas-ra/boards/make-pins.py +++ b/ports/renesas-ra/boards/make-pins.py @@ -220,13 +220,7 @@ class Pins(object): for named_pin in self.board_pins: qstr_set |= set([named_pin.name()]) for qstr in sorted(qstr_set): - cond_var = None - if qstr.startswith("AF"): - af_words = qstr.split("_") - cond_var = conditional_var(af_words[1]) - print_conditional_if(cond_var, file=qstr_file) print("Q({})".format(qstr), file=qstr_file) - # print_conditional_endif(cond_var, file=qstr_file) def print_ad_hdr(self, ad_const_filename): with open(ad_const_filename, "wt") as ad_const_file: