SotBE S2: remove declaration/clearing of unused variables