remove codes which is not used

This commit is contained in:
haranicle 2016-05-26 14:39:07 +09:00
parent 55734f1579
commit 6bc31921a9
4 changed files with 4 additions and 7 deletions

View File

@ -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 {

View File

@ -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\")")
}

View File

@ -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

View File

@ -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)
}