remove codes which is not used
This commit is contained in:
parent
55734f1579
commit
6bc31921a9
|
|
@ -29,7 +29,7 @@ class AssetCell: UICollectionViewCell {
|
|||
}
|
||||
|
||||
@IBAction func didPushPickButton(sender: UIButton) {
|
||||
guard let asset = asset, nohanaImagePickerController = nohanaImagePickerController else {
|
||||
guard let asset = asset else {
|
||||
return
|
||||
}
|
||||
if pickButton.selected {
|
||||
|
|
|
|||
|
|
@ -81,8 +81,7 @@ class AssetDetailListViewController: AssetListViewController {
|
|||
// MARK: - UICollectionViewDelegate
|
||||
|
||||
override func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {
|
||||
guard let cell = collectionView.dequeueReusableCellWithReuseIdentifier("AssetDetailCell", forIndexPath: indexPath) as? AssetDetailCell,
|
||||
nohanaImagePickerController = nohanaImagePickerController
|
||||
guard let cell = collectionView.dequeueReusableCellWithReuseIdentifier("AssetDetailCell", forIndexPath: indexPath) as? AssetDetailCell
|
||||
else {
|
||||
fatalError("failed to dequeueReusableCellWithIdentifier(\"AssetDetailCell\")")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -83,8 +83,7 @@ class AssetListViewController: UICollectionViewController {
|
|||
}
|
||||
|
||||
override func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {
|
||||
guard let cell = collectionView.dequeueReusableCellWithReuseIdentifier("AssetCell", forIndexPath: indexPath) as? AssetCell,
|
||||
nohanaImagePickerController = nohanaImagePickerController else {
|
||||
guard let cell = collectionView.dequeueReusableCellWithReuseIdentifier("AssetCell", forIndexPath: indexPath) as? AssetCell else {
|
||||
fatalError("failed to dequeueReusableCellWithIdentifier(\"AssetCell\")")
|
||||
}
|
||||
cell.tag = indexPath.item
|
||||
|
|
|
|||
|
|
@ -53,8 +53,7 @@ class MomentViewController: AssetListViewController, ActivityIndicatable {
|
|||
// MARK: - UICollectionViewDelegate
|
||||
|
||||
override func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {
|
||||
guard let cell = collectionView.dequeueReusableCellWithReuseIdentifier("AssetCell", forIndexPath: indexPath) as? AssetCell,
|
||||
nohanaImagePickerController = nohanaImagePickerController else {
|
||||
guard let cell = collectionView.dequeueReusableCellWithReuseIdentifier("AssetCell", forIndexPath: indexPath) as? AssetCell else {
|
||||
return UICollectionViewCell(frame: CGRectZero)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue