Remove various unused variables

3 jobs for unused_vars in 25 minutes and 52 seconds (queued for 1 second)
Status Job ID Name Coverage
  Build
passed #2580
build-gnutls-mit

00:25:45

passed #2578
build-no-threads-no-slapd

00:02:39

passed #2579
build-openssl-heimdal

00:25:51