Skip to content

Commit 1b615bb

Browse files
walacglemco
authored andcommitted
rv/rvgen: remove unused __get_main_name method
The __get_main_name() method in the generator module is never called from anywhere in the codebase. Remove this dead code to improve maintainability. Signed-off-by: Wander Lairson Costa <wander@redhat.com> Reviewed-by: Gabriele Monaco <gmonaco@redhat.com> Link: https://lore.kernel.org/r/20260223162407.147003-14-wander@redhat.com Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
1 parent 0f57f9a commit 1b615bb

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

tools/verification/rvgen/rvgen/generator.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,6 @@ def _create_file(self, file_name, content):
205205
path = os.path.join(self.rv_dir, "monitors", path)
206206
self.__write_file(path, content)
207207

208-
def __get_main_name(self):
209-
path = f"{self.name}/main.c"
210-
if not os.path.exists(path):
211-
return "main.c"
212-
return "__main.c"
213-
214208
def print_files(self):
215209
main_c = self.fill_main_c()
216210

0 commit comments

Comments
 (0)