Removing unreachable code