From 0c4f3118a0d50d79c3a61e83322b7425c8fbfb99 Mon Sep 17 00:00:00 2001 From: Denys Telezhkin Date: Sun, 3 Aug 2014 09:08:41 +0300 Subject: [PATCH] cut warnings from release configured builds --- DTCollectionViewManager.podspec | 2 +- DTCollectionViewManager/DTCollectionViewFactory.m | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/DTCollectionViewManager.podspec b/DTCollectionViewManager.podspec index 415a910..0f0ed42 100644 --- a/DTCollectionViewManager.podspec +++ b/DTCollectionViewManager.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'DTCollectionViewManager' - s.version = '2.6.1' + s.version = '2.6.2' s.license = 'MIT' s.summary = 'The most simple and robust way to manage UICollectionView.' s.homepage = 'https://github.com/DenHeadless/DTCollectionViewManager' diff --git a/DTCollectionViewManager/DTCollectionViewFactory.m b/DTCollectionViewManager/DTCollectionViewFactory.m index b91eaa4..383ddf5 100644 --- a/DTCollectionViewManager/DTCollectionViewFactory.m +++ b/DTCollectionViewManager/DTCollectionViewFactory.m @@ -81,8 +81,7 @@ - (void)registerCellClass:(Class)cellClass forModelClass:(Class)modelClass - (void)registerNibNamed:(NSString *)nibName forCellClass:(Class)cellClass forModelClass:(Class)modelClass { - BOOL nibExists = [self nibExistsWithNibName:nibName]; - NSParameterAssert(nibExists); + NSParameterAssert([self nibExistsWithNibName:nibName]); [[self.delegate collectionView] registerNib:[UINib nibWithNibName:nibName bundle:nil] forCellWithReuseIdentifier:[self reuseIdentifierFromClass:cellClass]]; @@ -112,9 +111,7 @@ - (void)registerNibNamed:(NSString *)nibName forKind:(NSString *)kind forModelClass:(Class)modelClass { - BOOL nibExists = [self nibExistsWithNibName:nibName]; - - NSParameterAssert(nibExists); + NSParameterAssert([self nibExistsWithNibName:nibName]); [[self.delegate collectionView] registerNib:[UINib nibWithNibName:nibName bundle:nil]