From 84d0cbee3c75ecd86e9ac199993e68c2a85dbfae Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Sat, 18 Jun 2022 23:01:11 -0700 Subject: [PATCH] [Playlist Controller] Remove unused function Remove a leftover function from previous code. Signed-off-by: Christopher Snowhill --- Playlist/PlaylistController.m | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Playlist/PlaylistController.m b/Playlist/PlaylistController.m index c74fd21ca..14f3fa4b1 100644 --- a/Playlist/PlaylistController.m +++ b/Playlist/PlaylistController.m @@ -228,14 +228,6 @@ static void *playlistControllerContext = &playlistControllerContext; } } -static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_block_t block) { - if(dispatch_queue_get_label(queue) == dispatch_queue_get_label(DISPATCH_CURRENT_QUEUE_LABEL)) { - block(); - } else { - dispatch_sync(queue, block); - } -} - - (void)commitPersistentStore { NSError *error = nil; [self.persistentContainer.viewContext save:&error];