Removed deprecated Swift code