Removing unreacheable code