aboutsummaryrefslogtreecommitdiff
path: root/include/qemu
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dave@treblig.org>2024-09-18 15:25:15 +0100
committerPeter Xu <peterx@redhat.com>2024-10-08 15:28:55 -0400
commit255db3ba80a985f11a9d7b2d2c0f014427ba4639 (patch)
treeec7b48b9c1554a6e59e70628ecbc83de7e180bd7 /include/qemu
parent9adcdd49e39149b494b7b6174ef0b7f2d906845b (diff)
downloadqemu-255db3ba80a985f11a9d7b2d2c0f014427ba4639.zip
qemu-255db3ba80a985f11a9d7b2d2c0f014427ba4639.tar.gz
qemu-255db3ba80a985f11a9d7b2d2c0f014427ba4639.tar.bz2
util/iova-tree: Remove deadcode
iova_tree_find_address, and iova_tree_foreach have never been used since the code was originally added by: eecf5eedbd ("util: implement simple iova tree") Remove them. Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org> Reviewed-by: Peter Xu <peterx@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Link: https://lore.kernel.org/r/20240918142515.153074-1-dave@treblig.org Signed-off-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'include/qemu')
-rw-r--r--include/qemu/iova-tree.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/include/qemu/iova-tree.h b/include/qemu/iova-tree.h
index 2a10a70..44a4593 100644
--- a/include/qemu/iova-tree.h
+++ b/include/qemu/iova-tree.h
@@ -112,31 +112,6 @@ const DMAMap *iova_tree_find(const IOVATree *tree, const DMAMap *map);
const DMAMap *iova_tree_find_iova(const IOVATree *tree, const DMAMap *map);
/**
- * iova_tree_find_address:
- *
- * @tree: the iova tree to search from
- * @iova: the iova address to find
- *
- * Similar to iova_tree_find(), but it tries to find mapping with
- * range iova=iova & size=0.
- *
- * Return: same as iova_tree_find().
- */
-const DMAMap *iova_tree_find_address(const IOVATree *tree, hwaddr iova);
-
-/**
- * iova_tree_foreach:
- *
- * @tree: the iova tree to iterate on
- * @iterator: the iterator for the mappings, return true to stop
- *
- * Iterate over the iova tree.
- *
- * Return: 1 if found any overlap, 0 if not, <0 if error.
- */
-void iova_tree_foreach(IOVATree *tree, iova_tree_iterator iterator);
-
-/**
* iova_tree_alloc_map:
*
* @tree: the iova tree to allocate from