mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-09 15:51:05 +00:00
Remove unused cell node method (#278)
This commit is contained in:
parent
7df1a20c5f
commit
9c07aff695
@ -1968,16 +1968,6 @@ static NSString * const kReuseIdentifier = @"_ASCollectionReuseIdentifier";
|
||||
[self setNeedsLayout];
|
||||
}
|
||||
|
||||
- (void)nodeDidRelayout:(ASCellNode *)node sizeChanged:(BOOL)sizeChanged
|
||||
{
|
||||
ASDisplayNodeAssertMainThread();
|
||||
|
||||
if (!sizeChanged) {
|
||||
return;
|
||||
}
|
||||
[self nodesDidRelayout:@[node]];
|
||||
}
|
||||
|
||||
- (void)nodesDidRelayout:(NSArray<ASCellNode *> *)nodes
|
||||
{
|
||||
ASDisplayNodeAssertMainThread();
|
||||
|
||||
@ -1829,21 +1829,6 @@ static NSString * const kCellReuseIdentifier = @"_ASTableViewCell";
|
||||
[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
|
||||
{
|
||||
|
||||
@ -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.
|
||||
*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user