[Pdbg] [PATCH v4 02/30] libpdbg: Drop unused function require_target_parent
Amitay Isaacs
amitay at ozlabs.org
Thu Oct 3 14:18:41 AEST 2019
Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
libpdbg/target.c | 6 ------
libpdbg/target.h | 1 -
2 files changed, 7 deletions(-)
diff --git a/libpdbg/target.c b/libpdbg/target.c
index da24ba0..f803ab2 100644
--- a/libpdbg/target.c
+++ b/libpdbg/target.c
@@ -312,12 +312,6 @@ uint32_t sbe_ffdc_get(struct pdbg_target *target, const uint8_t **ffdc, uint32_t
return sbefifo->ffdc_get(sbefifo, ffdc, ffdc_len);
}
-struct pdbg_target *require_target_parent(struct pdbg_target *target)
-{
- assert(target->parent);
- return target->parent;
-}
-
/* Finds the given class. Returns NULL if not found. */
struct pdbg_target_class *find_target_class(const char *name)
{
diff --git a/libpdbg/target.h b/libpdbg/target.h
index 2ecbf98..4c24251 100644
--- a/libpdbg/target.h
+++ b/libpdbg/target.h
@@ -52,7 +52,6 @@ struct pdbg_target {
void *priv;
};
-struct pdbg_target *require_target_parent(struct pdbg_target *target);
struct pdbg_target_class *find_target_class(const char *name);
struct pdbg_target_class *require_target_class(const char *name);
struct pdbg_target_class *get_target_class(struct pdbg_target *target);
--
2.21.0
More information about the Pdbg
mailing list