Remove varobj_clear_saved_item
authorTom Tromey <tom@tromey.com>
Fri, 11 Dec 2020 16:33:36 +0000 (09:33 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 11 Dec 2020 16:33:41 +0000 (09:33 -0700)
commit446d2c032d387a75020ecb41b5d89dd93158beb0
treefdf7362b4b5426779279a94250503ccedfc86bc9
parent11106495078658246feda85cb7566c1a6aacb1e1
Remove varobj_clear_saved_item

One call to varobj_clear_saved_item is from the varobj destructor.
This is no longer needed, so this patch removes the call; then inlines
the function into the sole remaining caller.

gdb/ChangeLog
2020-12-11  Tom Tromey  <tom@tromey.com>

* varobj.c (varobj_clear_saved_item): Remove.
(update_dynamic_varobj_children): Update.
(varobj::~varobj): Don't call varobj_clear_saved_item.
gdb/ChangeLog
gdb/varobj.c