diff options
author | Tom Tromey <tom@tromey.com> | 2017-04-26 22:03:42 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-08-03 07:58:56 -0600 |
commit | fad0444a57f4715c1afc9b0331014374e6faccb6 (patch) | |
tree | 051bc584f9dda1dd2973ccc5a29d17f6b0a94922 /gdb/utils.c | |
parent | 6e7bc05c53fe65089f290757a72508356b491a6f (diff) | |
download | gdb-fad0444a57f4715c1afc9b0331014374e6faccb6.zip gdb-fad0444a57f4715c1afc9b0331014374e6faccb6.tar.gz gdb-fad0444a57f4715c1afc9b0331014374e6faccb6.tar.bz2 |
Remove make_cleanup_fclose
After the preceding patches, make_cleanup_fclose is no longer used, so
remove it.
ChangeLog
2017-08-03 Tom Tromey <tom@tromey.com>
* utils.h (make_cleanup_fclose): Remove.
* utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r-- | gdb/utils.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/gdb/utils.c b/gdb/utils.c index 43e1827..c6b5423 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -148,24 +148,6 @@ make_cleanup_freeargv (char **arg) return make_cleanup (do_freeargv, arg); } -/* Helper function which does the work for make_cleanup_fclose. */ - -static void -do_fclose_cleanup (void *arg) -{ - FILE *file = (FILE *) arg; - - fclose (file); -} - -/* Return a new cleanup that closes FILE. */ - -struct cleanup * -make_cleanup_fclose (FILE *file) -{ - return make_cleanup (do_fclose_cleanup, file); -} - /* Helper function for make_cleanup_ui_out_redirect_pop. */ static void |