Skip to content

Commit 0d6a771

Browse files
mattmundellgreenbonebot
authored andcommitted
Change: remove init_target_iterator_one
Last used by the GMP scanners, which were removed in #1269 (4656596).
1 parent a4e1ada commit 0d6a771

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

src/manage.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1633,9 +1633,6 @@ target_count (const get_data_t *);
16331633
void
16341634
init_user_target_iterator (iterator_t*, target_t);
16351635

1636-
void
1637-
init_target_iterator_one (iterator_t*, target_t);
1638-
16391636
int
16401637
init_target_iterator (iterator_t*, get_data_t *);
16411638

src/manage_sql.c

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -21933,29 +21933,6 @@ target_count (const get_data_t *get)
2193321933
TRUE);
2193421934
}
2193521935

21936-
/**
21937-
* @brief Initialise a target iterator, given a single target.
21938-
*
21939-
* @param[in] iterator Iterator.
21940-
* @param[in] target Single target to iterate.
21941-
*/
21942-
void
21943-
init_target_iterator_one (iterator_t* iterator, target_t target)
21944-
{
21945-
get_data_t get;
21946-
21947-
assert (target);
21948-
21949-
memset (&get, '\0', sizeof (get));
21950-
get.id = target_uuid (target);
21951-
get.filter = "owner=any permission=get_targets";
21952-
21953-
/* We could pass the return up to the caller, but we don't pass in
21954-
* a filter id and the callers are all in situations where the
21955-
* target cannot disappear, so it's safe to ignore the return. */
21956-
init_target_iterator (iterator, &get);
21957-
}
21958-
2195921936
/**
2196021937
* @brief Initialise a target iterator, including observed targets.
2196121938
*

0 commit comments

Comments
 (0)