Remove some unneeded checks in Guile code
authorTom Tromey <tom@tromey.com>
Sun, 29 May 2022 03:06:19 +0000 (21:06 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 28 Jul 2022 20:16:50 +0000 (14:16 -0600)
commit43cffa64cf72f11a95203cd89844f82aa906c7e7
tree0d8a792fa7a0ea3f169345e2b9ae739c83af58b4
parent8126c055e453a494a72a44c9cce39fa8ddf14607
Remove some unneeded checks in Guile code

The Guile code generally checks to see if an htab is non-null before
destroying it.  However, the registry code already ensures this, so we
can change these checks to asserts and simplify the code a little.
gdb/guile/scm-block.c
gdb/guile/scm-frame.c
gdb/guile/scm-symbol.c
gdb/guile/scm-symtab.c
gdb/guile/scm-type.c