Remove redundant code

Found by: scan-build
2 jobs for !39 with small-fixes in 1 minute and 41 seconds (queued for 40 seconds)
merge request