wificinnect activity redundant code removal