[11/13] libctf: remove outdated comment about parent dict importing

Message ID 20201218195147.378720-12-nick.alcock@oracle.com
State New
Headers show
  • CTF dumper improvements, a lookup testsuite, and bugfixes
Related show

Commit Message

Andrea Corallo via Binutils Dec. 18, 2020, 7:51 p.m.
Parent dicts are nowadays imported automatically in most situations, so
the comment in ctf_archive_iter warning people that they need to import
parents by hand is wrong.  Remove it.

2020-12-15  Nick Alcock  <nick.alcock@oracle.com>

	* ctf-archive.c (ctf_archive_iter): Remove outdated comment.
 libctf/ctf-archive.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)



diff --git a/libctf/ctf-archive.c b/libctf/ctf-archive.c
index a74ab47040e..81ba51bd7ea 100644
--- a/libctf/ctf-archive.c
+++ b/libctf/ctf-archive.c
@@ -1021,9 +1021,7 @@  ctf_archive_iter (const ctf_archive_t *arc, ctf_archive_member_f *func,
 /* Iterate over all CTF files in an archive, returning each dict in turn as a
    ctf_dict_t, and NULL on error or end of iteration.  It is the caller's
-   responsibility to close it.  Parent dicts may be skipped.  Regardless of
-   whether they are skipped or not, the caller must ctf_import the parent if
-   need be.
+   responsibility to close it.  Parent dicts may be skipped.
    The archive member is cached for rapid return on future calls.