Drop unused variables

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Use GIT_UNUSED for unused parameters

Signed-off-by: Sven Strickroth <email@cs-ware.de>