Remove parameter from language_info

I noticed that language_info is only ever called with a value of '1'.
This patch removes the parameter.

2021-03-29  Tom Tromey  <tromey@adacore.com>

	* top.c (check_frame_language_change): Update.
	* language.c (language_info): Remove parameter.
	* language.h (language_info): Remove parameter.
This commit is contained in:
Tom Tromey
2021-03-29 08:25:13 -06:00
parent 9b8ffbf410
commit 9f67fc596b
4 changed files with 15 additions and 14 deletions

View File

@ -374,26 +374,17 @@ set_language (enum language lang)
}
/* Print out the current language settings: language, range and
type checking. If QUIETLY, print only what has changed. */
/* See language.h. */
void
language_info (int quietly)
language_info ()
{
if (quietly && expected_language == current_language)
if (expected_language == current_language)
return;
expected_language = current_language;
printf_unfiltered (_("Current language: %s\n"), language);
show_language_command (NULL, 1, NULL, NULL);
if (!quietly)
{
printf_unfiltered (_("Range checking: %s\n"), range);
show_range_command (NULL, 1, NULL, NULL);
printf_unfiltered (_("Case sensitivity: %s\n"), case_sensitive);
show_case_command (NULL, 1, NULL, NULL);
}
}