diff --git a/Schemas/configuration.json b/Schemas/configuration.json index 5fb3993b7..2b95d767f 100644 --- a/Schemas/configuration.json +++ b/Schemas/configuration.json @@ -18,7 +18,6 @@ "exp_interface_state_coalesce", "exp_unfair_lock", "exp_infer_layer_defaults", - "exp_network_image_queue", "exp_collection_teardown", "exp_framesetter_cache", "exp_skip_clear_data", diff --git a/Source/ASExperimentalFeatures.h b/Source/ASExperimentalFeatures.h index 87aee06aa..f78b4332c 100644 --- a/Source/ASExperimentalFeatures.h +++ b/Source/ASExperimentalFeatures.h @@ -23,15 +23,14 @@ typedef NS_OPTIONS(NSUInteger, ASExperimentalFeatures) { ASExperimentalInterfaceStateCoalescing = 1 << 2, // exp_interface_state_coalesce ASExperimentalUnfairLock = 1 << 3, // exp_unfair_lock ASExperimentalLayerDefaults = 1 << 4, // exp_infer_layer_defaults - ASExperimentalNetworkImageQueue = 1 << 5, // exp_network_image_queue - ASExperimentalCollectionTeardown = 1 << 6, // exp_collection_teardown - ASExperimentalFramesetterCache = 1 << 7, // exp_framesetter_cache - ASExperimentalSkipClearData = 1 << 8, // exp_skip_clear_data - ASExperimentalDidEnterPreloadSkipASMLayout = 1 << 9, // exp_did_enter_preload_skip_asm_layout - ASExperimentalDisableAccessibilityCache = 1 << 10, // exp_disable_a11y_cache - ASExperimentalSkipAccessibilityWait = 1 << 11, // exp_skip_a11y_wait - ASExperimentalNewDefaultCellLayoutMode = 1 << 12, // exp_new_default_cell_layout_mode - ASExperimentalDispatchApply = 1 << 13, // exp_dispatch_apply + ASExperimentalCollectionTeardown = 1 << 5, // exp_collection_teardown + ASExperimentalFramesetterCache = 1 << 6, // exp_framesetter_cache + ASExperimentalSkipClearData = 1 << 7, // exp_skip_clear_data + ASExperimentalDidEnterPreloadSkipASMLayout = 1 << 8, // exp_did_enter_preload_skip_asm_layout + ASExperimentalDisableAccessibilityCache = 1 << 9, // exp_disable_a11y_cache + ASExperimentalSkipAccessibilityWait = 1 << 10, // exp_skip_a11y_wait + ASExperimentalNewDefaultCellLayoutMode = 1 << 11, // exp_new_default_cell_layout_mode + ASExperimentalDispatchApply = 1 << 12, // exp_dispatch_apply ASExperimentalFeatureAll = 0xFFFFFFFF }; diff --git a/Source/ASExperimentalFeatures.mm b/Source/ASExperimentalFeatures.mm index bba80d5e8..0a8972fe3 100644 --- a/Source/ASExperimentalFeatures.mm +++ b/Source/ASExperimentalFeatures.mm @@ -17,7 +17,6 @@ @"exp_interface_state_coalesce", @"exp_unfair_lock", @"exp_infer_layer_defaults", - @"exp_network_image_queue", @"exp_collection_teardown", @"exp_framesetter_cache", @"exp_skip_clear_data", diff --git a/Source/ASNetworkImageNode.mm b/Source/ASNetworkImageNode.mm index 0a0245dbe..f19684459 100644 --- a/Source/ASNetworkImageNode.mm +++ b/Source/ASNetworkImageNode.mm @@ -125,16 +125,7 @@ - (void)dealloc - (dispatch_queue_t)callbackQueue { - static dispatch_once_t onceToken; - static dispatch_queue_t callbackQueue; - dispatch_once(&onceToken, ^{ - if (ASActivateExperimentalFeature(ASExperimentalNetworkImageQueue)) { - callbackQueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); - } else { - callbackQueue = dispatch_get_main_queue(); - } - }); - return callbackQueue; + return dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); } #pragma mark - Public methods -- must lock diff --git a/Tests/ASConfigurationTests.mm b/Tests/ASConfigurationTests.mm index 4dd8de2ab..aff309176 100644 --- a/Tests/ASConfigurationTests.mm +++ b/Tests/ASConfigurationTests.mm @@ -23,7 +23,6 @@ ASExperimentalInterfaceStateCoalescing, ASExperimentalUnfairLock, ASExperimentalLayerDefaults, - ASExperimentalNetworkImageQueue, ASExperimentalCollectionTeardown, ASExperimentalFramesetterCache, ASExperimentalSkipClearData, @@ -49,7 +48,6 @@ + (NSArray *)names { @"exp_interface_state_coalesce", @"exp_unfair_lock", @"exp_infer_layer_defaults", - @"exp_network_image_queue", @"exp_collection_teardown", @"exp_framesetter_cache", @"exp_skip_clear_data", diff --git a/Tests/ASNetworkImageNodeTests.mm b/Tests/ASNetworkImageNodeTests.mm index 6b60030ff..f794ba9e7 100644 --- a/Tests/ASNetworkImageNodeTests.mm +++ b/Tests/ASNetworkImageNodeTests.mm @@ -109,7 +109,6 @@ @implementation ASTestImageCache - (void)cachedImageWithURL:(NSURL *)URL callbackQueue:(dispatch_queue_t)callbackQueue completion:(ASImageCacherCompletion)completion { - ASDisplayNodeAssert(callbackQueue == dispatch_get_main_queue(), @"ASTestImageCache expects main queue for callback."); completion(nil); }