fix warning reg. unused parameter

introduced in 5a9b6395
Merge pull request #980 from Jojo-Schmitz/warnings

fix warning reg. unused parameter