removed a few unused variables

These variables have been assigned but never actually used. Reported by
gcc-4.7. Lower version cannot give such warnings.