Removed code duplication.
Authored by: mueller@SALSA.visus.uni-stuttgart.de 2012-10-08
Parent: [r184]
Child: [r186]