[Pdbg] [PATCH v4 02/30] libpdbg: Drop unused function require_target_parent
Alistair Popple
alistair at popple.id.au
Wed Oct 9 13:22:59 AEDT 2019
Reviewed-by: Alistair Popple <alistair at popple.id.au>
On Thursday, 3 October 2019 2:18:41 PM AEDT Amitay Isaacs wrote:
> 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);
>
More information about the Pdbg
mailing list