Merge "Remove unused func _detach"