 
 import UIKit
 
-protocol AJMFlowLayoutDelegate : class {
-    
-    func ajmFlowLayout(sender : AJMFlowLayout, didChooseIndex index : Int)
-    
-}
-
 class AJMFlowLayout: UICollectionViewFlowLayout {
     
-    var numberOfColumns = 6
     var allAttributes = [IndexPath : UICollectionViewLayoutAttributes]()
-    var xOffsets = [CGFloat]()
-    var yOffsets = [CGFloat]()
-    
-    weak var delegate : AJMFlowLayoutDelegate?
     
     required init?(coder aDecoder: NSCoder) {
         super.init(coder: aDecoder)

            
        }
    }
}

    
    override func prepare() {
        super.prepare()
        scrollDirection = .horizontal
        collectionView?.decelerationRate = UIScrollViewDecelerationRateFast
    }
    

    override func layoutAttributesForElements(in rect: CGRect) -> [UICollectionViewLayoutAttributes]? {
        
        let array = super.layoutAttributesForElements(in: rect)!
