Remove cleanup from ada_collect_symbol_completion_matches

ada_collect_symbol_completion_matches installs a null_cleanup but not
any other cleanups.  This patch removes it.

ChangeLog
2018-05-21  Tom Tromey  <tom@tromey.com>

	* ada-lang.c (ada_collect_symbol_completion_matches): Remove
	cleanup.
This commit is contained in:
Tom Tromey 2018-05-18 15:42:27 -06:00
parent 6f46ac8531
commit 790217f673
2 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2018-05-21 Tom Tromey <tom@tromey.com>
* ada-lang.c (ada_collect_symbol_completion_matches): Remove
cleanup.
2018-05-21 Tom Tromey <tom@tromey.com>
* ada-lang.c (ada_exception_message_1, ada_exception_message):

View File

@ -6444,7 +6444,6 @@ ada_collect_symbol_completion_matches (completion_tracker &tracker,
struct objfile *objfile;
const struct block *b, *surrounding_static_block = 0;
struct block_iterator iter;
struct cleanup *old_chain = make_cleanup (null_cleanup, NULL);
gdb_assert (code == TYPE_CODE_UNDEF);
@ -6549,8 +6548,6 @@ ada_collect_symbol_completion_matches (completion_tracker &tracker,
lookup_name, text, word);
}
}
do_cleanups (old_chain);
}
/* Field Access */