Remove setNeedsDataFetch queuing, as interfaceState always performs fetch on re-enter

This commit is contained in:
Levi McCallum
2016-01-27 18:25:39 -08:00
parent 411d0b3deb
commit ee23830318
2 changed files with 1 additions and 9 deletions

View File

@@ -1731,8 +1731,6 @@ static BOOL ShouldUseNewRenderingRange = YES;
{
if (ASInterfaceStateIncludesFetchData(_interfaceState)) {
[self recursivelyFetchData];
} else {
_needsDataFetch = YES;
}
}
@@ -1802,11 +1800,7 @@ static BOOL ShouldUseNewRenderingRange = YES;
BOOL nowFetchData = ASInterfaceStateIncludesFetchData(newState);
BOOL wasFetchData = ASInterfaceStateIncludesFetchData(oldState);
// When a node has been queued up for a data fetch via setNeedsDataFetch, override the default behavior
if (_needsDataFetch) {
[self recursivelyFetchData];
_needsDataFetch = NO;
} else if (nowFetchData != wasFetchData) {
if (nowFetchData != wasFetchData) {
if (nowFetchData) {
[self fetchData];
} else {

View File

@@ -101,8 +101,6 @@ typedef NS_OPTIONS(NSUInteger, ASDisplayNodeMethodOverrides)
ASDisplayNodeExtraIvars _extra;
BOOL _needsDataFetch;
#if TIME_DISPLAYNODE_OPS
@public
NSTimeInterval _debugTimeToCreateView;