Commit 62f556e3 authored by Maurice Kraus's avatar Maurice Kraus Committed by Maurice Kraus
Browse files

refactor(viewlayer): this deletes an unused variable

parent e1deed4e
Pipeline #1889 passed with stages
in 13 minutes and 39 seconds
......@@ -21,8 +21,6 @@ class AvatarSelectionViewController: UIViewController, UICollectionViewDelegate
private var dataSource: RxCollectionViewSectionedAnimatedDataSource<AvatarSection>!
private let disposeBag = DisposeBag()
var onAvatarPress: Action<Int, Void>?
override func viewDidLoad() {
super.viewDidLoad()
collectionView.register(cellType: AvatarCollectionViewCell.self)
......@@ -50,7 +48,6 @@ class AvatarSelectionViewController: UIViewController, UICollectionViewDelegate
collectionView.rx.itemSelected
.do(onNext: { [unowned self] indexPath in
self.collectionView.deselectItem(at: indexPath, animated: true)
}).map { [unowned self] indexPath -> Int in
let model = try self.dataSource.model(at: indexPath) as! Avatar
return model.id
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment