Remove language_demangle
authorTom Tromey <tom@tromey.com>
Wed, 29 Mar 2023 19:51:13 +0000 (13:51 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 31 Mar 2023 14:55:55 +0000 (08:55 -0600)
commit9497d69fc0eeca8682cc09360fb822ced6b4670f
treeddefa0ba7514d91b246dfcf521900c802b95fe50
parent6f214d0f399847b13f979651c3b46befcbb42140
Remove language_demangle

I noticed that language_demangle shadows the global
"current_language".  When I went to fix this, though, I then saw that
language_demangle is only called in two places, and has a comment
saying it should be removed.  This patch removes it.  Note that the
NULL check in language_demangle is not needed by either of the
existing callers.

Regression tested on x86-64 Fedora 36.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/gdb-demangle.c
gdb/language.c
gdb/language.h
gdb/utils.c