Skip to content

Commit

Permalink
Remove unused cell node method (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adlai-Holler committed May 15, 2017
1 parent 7df1a20 commit 9c07aff
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 38 deletions.
10 changes: 0 additions & 10 deletions Source/ASCollectionView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1968,16 +1968,6 @@ - (void)nodeDidInvalidateSize:(ASCellNode *)node
[self setNeedsLayout];
}

- (void)nodeDidRelayout:(ASCellNode *)node sizeChanged:(BOOL)sizeChanged
{
ASDisplayNodeAssertMainThread();

if (!sizeChanged) {
return;
}
[self nodesDidRelayout:@[node]];
}

- (void)nodesDidRelayout:(NSArray<ASCellNode *> *)nodes
{
ASDisplayNodeAssertMainThread();
Expand Down
15 changes: 0 additions & 15 deletions Source/ASTableView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1829,21 +1829,6 @@ - (void)nodeDidInvalidateSize:(ASCellNode *)node
[self setNeedsLayout];
}

- (void)nodeDidRelayout:(ASCellNode *)node sizeChanged:(BOOL)sizeChanged
{
ASDisplayNodeAssertMainThread();

if (!sizeChanged || _queuedNodeHeightUpdate || _remeasuringCellNodes) {
return;
}

_queuedNodeHeightUpdate = YES;
[self performSelector:@selector(requeryNodeHeights)
withObject:nil
afterDelay:0
inModes:@[ NSRunLoopCommonModes ]];
}

// Cause UITableView to requery for the new height of this node
- (void)requeryNodeHeights
{
Expand Down
13 changes: 0 additions & 13 deletions Source/Private/ASCellNode+Internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,6 @@ NS_ASSUME_NONNULL_BEGIN

@protocol ASCellNodeInteractionDelegate <NSObject>

/**
* Notifies the delegate that the specified cell node has done a relayout.
* The notification is done on main thread.
*
* This will not be called due to measurement passes before the node has loaded
* its view, even if triggered by -setNeedsLayout, as it is assumed these are
* not relevant to UIKit. Indeed, these calls can cause consistency issues.
*
* @param node A node informing the delegate about the relayout.
* @param sizeChanged `YES` if the node's `calculatedSize` changed during the relayout, `NO` otherwise.
*/
- (void)nodeDidRelayout:(ASCellNode *)node sizeChanged:(BOOL)sizeChanged;

/**
* Notifies the delegate that a specified cell node invalidates it's size what could result into a size change.
*
Expand Down

0 comments on commit 9c07aff

Please sign in to comment.