remove param "dispp" from ada-lang.c::ada_lookup_struct_elt_type
authorJoel Brobecker <brobecker@adacore.com>
Fri, 25 Aug 2017 23:23:27 +0000 (19:23 -0400)
committerJoel Brobecker <brobecker@adacore.com>
Sat, 26 Aug 2017 00:29:41 +0000 (20:29 -0400)
commit988f6b3dc615173d6d78a76ac26c109b4582da74
tree195bcd3dcb4e8aa217b054f89f8db32683a2e60f
parent5fdda9d6a4c3520f4787d96c4ae293783fe6262a
remove param "dispp" from ada-lang.c::ada_lookup_struct_elt_type

The function is always called with DISPP set to NULL, so there is
no need for this parameter anymore. This patch removes it, and
eliminates some dead code associated to that.

gdb/ChangeLog:

        * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
        Update all callers accordingly. Remove all code blocks handling
        the case where DISPP is not NULL.

Tested on x86_64-linux, no regression.
gdb/ChangeLog
gdb/ada-lang.c