Remove unreacheable code