[Pdbg] [PATCH 9/9] main: Drop unused target_select/target_selected functions
Amitay Isaacs
amitay at ozlabs.org
Tue Nov 20 15:19:53 AEDT 2018
Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
src/main.c | 12 +-----------
src/main.h | 4 ----
2 files changed, 1 insertion(+), 15 deletions(-)
diff --git a/src/main.c b/src/main.c
index 6693349..358d0e0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -519,16 +519,6 @@ static bool parse_options(int argc, char *argv[])
return true;
}
-void target_select(struct pdbg_target *target)
-{
- path_target_add(target);
-}
-
-bool target_selected(struct pdbg_target *target)
-{
- return path_target_selected(target);
-}
-
static bool target_selection(void)
{
switch (backend) {
@@ -631,7 +621,7 @@ static void print_target(struct pdbg_target *target, int level)
return;
printf("%s%d: %s", classname, pdbg_target_index(target), pdbg_target_name(target));
- if (target_selected(target))
+ if (path_target_selected(target))
printf(" (*)");
printf("\n");
diff --git a/src/main.h b/src/main.h
index a97826c..78b4d92 100644
--- a/src/main.h
+++ b/src/main.h
@@ -26,7 +26,3 @@ static inline bool target_is_disabled(struct pdbg_target *target)
return pdbg_target_status(target) == PDBG_TARGET_DISABLED ||
pdbg_target_status(target) == PDBG_TARGET_NONEXISTENT;
}
-
-void target_select(struct pdbg_target *target);
-void target_unselect(struct pdbg_target *target);
-bool target_selected(struct pdbg_target *target);
--
2.19.1
More information about the Pdbg
mailing list