[scratch] remove some unreachable code