Remove various unused variables

3 jobs for unused_vars in 28 minutes and 13 seconds
Status Job ID Name Coverage
  Build
passed #2700
build-gnutls-mit

00:26:24

passed #2698
build-no-threads-no-slapd

00:01:49

passed #2699
build-openssl-heimdal

00:26:26