[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 03/10] softmmu/ioport: Remove unused functions
From: |
Bernhard Beschow |
Subject: |
[PATCH v2 03/10] softmmu/ioport: Remove unused functions |
Date: |
Thu, 26 Jan 2023 22:17:33 +0100 |
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
---
include/exec/ioport.h | 2 --
softmmu/ioport.c | 24 ------------------------
2 files changed, 26 deletions(-)
diff --git a/include/exec/ioport.h b/include/exec/ioport.h
index ec3e8e5942..1ef5aebba3 100644
--- a/include/exec/ioport.h
+++ b/include/exec/ioport.h
@@ -67,7 +67,5 @@ void portio_list_init(PortioList *piolist, Object *owner,
void *opaque, const char *name,
MemoryRegion *address_space_io, uint16_t start);
void portio_list_set_flush_coalesced(PortioList *piolist);
-void portio_list_destroy(PortioList *piolist);
-void portio_list_del(PortioList *piolist);
#endif /* IOPORT_H */
diff --git a/softmmu/ioport.c b/softmmu/ioport.c
index c92e3cb27d..0a55d39196 100644
--- a/softmmu/ioport.c
+++ b/softmmu/ioport.c
@@ -118,19 +118,6 @@ void portio_list_set_flush_coalesced(PortioList *piolist)
piolist->flush_coalesced_mmio = true;
}
-void portio_list_destroy(PortioList *piolist)
-{
- MemoryRegionPortioList *mrpio;
- unsigned i;
-
- for (i = 0; i < piolist->nr; ++i) {
- mrpio = container_of(piolist->regions[i], MemoryRegionPortioList, mr);
- object_unparent(OBJECT(&mrpio->mr));
- g_free(mrpio);
- }
- g_free(piolist->regions);
-}
-
static const MemoryRegionPortio *find_portio(MemoryRegionPortioList *mrpio,
uint64_t offset, unsigned size,
bool write)
@@ -280,14 +267,3 @@ void portio_list_init(PortioList *piolist, Object *owner,
/* There will always be an open sub-list. */
portio_list_add_1(piolist, pio_start, count, start, off_low, off_high);
}
-
-void portio_list_del(PortioList *piolist)
-{
- MemoryRegionPortioList *mrpio;
- unsigned i;
-
- for (i = 0; i < piolist->nr; ++i) {
- mrpio = container_of(piolist->regions[i], MemoryRegionPortioList, mr);
- memory_region_del_subregion(piolist->address_space, &mrpio->mr);
- }
-}
--
2.39.1
- [PATCH v2 00/10] Resolve isabus global, Bernhard Beschow, 2023/01/26
- [PATCH v2 01/10] softmmu/ioport: Move portio_list_init() in front of portio_list_add(), Bernhard Beschow, 2023/01/26
- [PATCH v2 04/10] hw/ide/piix: Disuse isa_get_irq(), Bernhard Beschow, 2023/01/26
- [PATCH v2 03/10] softmmu/ioport: Remove unused functions,
Bernhard Beschow <=
- [PATCH v2 02/10] softmmu/ioport: Merge portio_list_add() into portio_list_init(), Bernhard Beschow, 2023/01/26
- [PATCH v2 07/10] hw/ide/piix: Require an ISABus only for user-created instances, Bernhard Beschow, 2023/01/26
- [PATCH v2 09/10] hw/isa: Remove use of global isa bus, Bernhard Beschow, 2023/01/26
- [PATCH v2 05/10] Revert "hw/ide: Fix crash when plugging a piix3-ide device into the x-remote machine", Bernhard Beschow, 2023/01/26
- [PATCH v2 06/10] hw/ide/pci: Add PCIIDEState::isa_irqs[], Bernhard Beschow, 2023/01/26
- [PATCH v2 08/10] hw/ide: Let ide_init_ioport() take a MemoryRegion argument instead of ISADevice, Bernhard Beschow, 2023/01/26
- [PATCH v2 10/10] hw/isa/isa-bus: Resolve isabus global, Bernhard Beschow, 2023/01/26
- Re: [PATCH v2 00/10] Resolve isabus global, Bernhard Beschow, 2023/01/30