Skip to contentSkip to conversation

hw/loader: Remove unused rom_add_file_as() definition

PATCH In review Philippe Mathieu-Daudé 2 participants 2 messages Sep 17, 2021 – Sep 21, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/loader: Remove unused rom_add_file_as() definition

rom_add_file_as() is not used anywhere, remove it.

---
 include/hw/loader.h | 2 --
 1 file changed, 2 deletions(-)
include/hw/loader.h +0 -2
index cbfc1848737..c52a1df8b68 100644
@@ -329,8 +329,6 @@ void hmp_info_roms(Monitor *mon, const QDict *qdict);
     rom_add_blob(_f, _b, _l, _l, _a, NULL, NULL, NULL, NULL, true)
 #define rom_add_file_mr(_f, _mr, _i)            \
     rom_add_file(_f, NULL, 0, _i, false, _mr, NULL)
-#define rom_add_file_as(_f, _as, _i)            \
-    rom_add_file(_f, NULL, 0, _i, false, NULL, _as)
 #define rom_add_file_fixed_as(_f, _a, _i, _as)          \
     rom_add_file(_f, NULL, _a, _i, false, NULL, _as)
 #define rom_add_blob_fixed_as(_f, _b, _l, _a, _as)      \
Signature · 1 line
2.31.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Philippe Mathieu-Daudé

rom_add_file_as() is not used anywhere, remove it.

Looks fine, although I'm not convinced removing this gets us anything. It might be used in the future and doesn't add too much cruft.

Alistair

Quoted 21 lines
---
 include/hw/loader.h | 2 --
 1 file changed, 2 deletions(-)
include/hw/loader.h +0 -3
index cbfc1848737..c52a1df8b68 100644
@@ -329,8 +329,6 @@ void hmp_info_roms(Monitor *mon, const QDict *qdict);
     rom_add_blob(_f, _b, _l, _l, _a, NULL, NULL, NULL, NULL, true)
 #define rom_add_file_mr(_f, _mr, _i)            \
     rom_add_file(_f, NULL, 0, _i, false, _mr, NULL)
-#define rom_add_file_as(_f, _as, _i)            \
-    rom_add_file(_f, NULL, 0, _i, false, NULL, _as)
 #define rom_add_file_fixed_as(_f, _a, _i, _as)          \
     rom_add_file(_f, NULL, _a, _i, false, NULL, _as)
 #define rom_add_blob_fixed_as(_f, _b, _l, _a, _as)      \
--

2.31.1