Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

Commit

Permalink
rename func
Browse files Browse the repository at this point in the history
  • Loading branch information
cuzv committed Jan 22, 2016
1 parent 1f2b3a7 commit c561ef7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ThinningCoordinator.podspec
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "ThinningCoordinator"
s.version = "2.0"
s.version = "2.0.1"
s.summary = "Focus on lighter view controllers."
s.homepage = "https://github.com/cuzv/ThinningCoordinator"
s.license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions ThinningCoordinator/Sources/TCGlobalDataMetric.h
Expand Up @@ -149,10 +149,10 @@
- (void)insertData:(nonnull NSArray *)data atIndexPath:(nonnull NSIndexPath *)indexPath __attribute__((deprecated("use `insertContentsOf:atIndexPath` instead.")));

/// Replace single data to specific section data metric.
- (void)replace:(nonnull id)data atIndexPath:(nonnull NSIndexPath *)indexPath;
- (void)replaceWith:(nonnull id)data atIndexPath:(nonnull NSIndexPath *)indexPath;

/// Replace multiple data to specific section data metric.
- (void)replaceContentsOf:(nonnull NSArray *)data atIndexPath:(nonnull NSIndexPath *)indexPath;
- (void)replaceWithContentsOf:(nonnull NSArray *)data atIndexPath:(nonnull NSIndexPath *)indexPath;

/// Replace specific item new data to specific section data metric
- (void)replaceData:(nonnull NSArray *)data atIndexPath:(nonnull NSIndexPath *)indexPath __attribute__((deprecated("use `replaceContentsOf:atIndexPath:` instead.")));
Expand Down
6 changes: 3 additions & 3 deletions ThinningCoordinator/Sources/TCGlobalDataMetric.m
Expand Up @@ -297,20 +297,20 @@ - (void)insertData:(NSArray *)data atIndexPath:(NSIndexPath *)indexPath {
[self insertContentsOf:data atIndexPath:indexPath];
}

- (void)replace:(nonnull id)data atIndexPath:(nonnull NSIndexPath *)indexPath {
- (void)replaceWith:(nonnull id)data atIndexPath:(nonnull NSIndexPath *)indexPath {
NSInteger section = indexPath.section;
validateNoneInsertElementArgumentIndex(self.sectionDataMetrics, section, __FILE__, __LINE__, __FUNCTION__);
[self.sectionDataMetrics[section] replaceWith:data atIndex:indexPath.item];
}

- (void)replaceContentsOf:(nonnull NSArray *)data atIndexPath:(nonnull NSIndexPath *)indexPath {
- (void)replaceWithContentsOf:(nonnull NSArray *)data atIndexPath:(nonnull NSIndexPath *)indexPath {
NSInteger section = indexPath.section;
validateNoneInsertElementArgumentIndex(self.sectionDataMetrics, section, __FILE__, __LINE__, __FUNCTION__);
[self.sectionDataMetrics[section] replaceWithContentsOf:data atIndex:indexPath.item];
}

- (void)replaceData:(NSArray *)data atIndexPath:(NSIndexPath *)indexPath {
[self replaceContentsOf:data atIndexPath:indexPath];
[self replaceWithContentsOf:data atIndexPath:indexPath];
}

- (nullable TCSectionDataMetric *)removeFirst {
Expand Down

0 comments on commit c561ef7

Please sign in to comment.