From d7096c5dd1b466590dea13163ccd3752ca0366e3 Mon Sep 17 00:00:00 2001 From: "Tondapu, Alekhya" Date: Mon, 12 Jul 2021 20:23:43 +0530 Subject: [PATCH] removed unwanted code --- MVMCoreUI/Atomic/Organisms/Carousel/Carousel.swift | 6 ------ 1 file changed, 6 deletions(-) diff --git a/MVMCoreUI/Atomic/Organisms/Carousel/Carousel.swift b/MVMCoreUI/Atomic/Organisms/Carousel/Carousel.swift index 3fd5acf0..24ae0c06 100644 --- a/MVMCoreUI/Atomic/Organisms/Carousel/Carousel.swift +++ b/MVMCoreUI/Atomic/Organisms/Carousel/Carousel.swift @@ -79,7 +79,6 @@ open class Carousel: View { DispatchQueue.main.async { self.layoutCollection() } - collectionView.contentInset = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0) } /// Invalidates the layout and ensures we are paged to the correct cell. @@ -398,11 +397,6 @@ extension Carousel: UICollectionViewDelegateFlowLayout { } extension Carousel: UICollectionViewDataSource { - - open func numberOfSections(in collectionView: UICollectionView) -> Int { - return 1 - } - open func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { return molecules?.count ?? 0 }