Remove unused cell node method (#278)

This commit is contained in:
Adlai Holler 2017-05-15 16:36:29 -07:00 committed by GitHub
parent 7df1a20c5f
commit 9c07aff695
3 changed files with 0 additions and 38 deletions

View File

@ -1968,16 +1968,6 @@ static NSString * const kReuseIdentifier = @"_ASCollectionReuseIdentifier";
[self setNeedsLayout]; [self setNeedsLayout];
} }
- (void)nodeDidRelayout:(ASCellNode *)node sizeChanged:(BOOL)sizeChanged
{
ASDisplayNodeAssertMainThread();
if (!sizeChanged) {
return;
}
[self nodesDidRelayout:@[node]];
}
- (void)nodesDidRelayout:(NSArray<ASCellNode *> *)nodes - (void)nodesDidRelayout:(NSArray<ASCellNode *> *)nodes
{ {
ASDisplayNodeAssertMainThread(); ASDisplayNodeAssertMainThread();

View File

@ -1829,21 +1829,6 @@ static NSString * const kCellReuseIdentifier = @"_ASTableViewCell";
[self setNeedsLayout]; [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 // Cause UITableView to requery for the new height of this node
- (void)requeryNodeHeights - (void)requeryNodeHeights
{ {

View File

@ -23,19 +23,6 @@ NS_ASSUME_NONNULL_BEGIN
@protocol ASCellNodeInteractionDelegate <NSObject> @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. * Notifies the delegate that a specified cell node invalidates it's size what could result into a size change.
* *