iOS: remove legacy code