Skip to content

Commit

Permalink
cut warnings from release configured builds
Browse files Browse the repository at this point in the history
  • Loading branch information
DenTelezhkin committed Aug 3, 2014
1 parent 7ccd5ee commit 0c4f311
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DTCollectionViewManager.podspec
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
7 changes: 2 additions & 5 deletions DTCollectionViewManager/DTCollectionViewFactory.m
Original file line number Diff line number Diff line change
Expand Up @@ -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]];
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 0c4f311

Please sign in to comment.