From 6667bc90a5ca01ed00734b3fff92b9e5d12399f2 Mon Sep 17 00:00:00 2001 From: wutschel Date: Wed, 25 Dec 2024 14:17:31 +0100 Subject: [PATCH] Remove unused parameter from playerOpen Only either indexPath or the ActivityIndicator is needed. --- XBMC Remote/DetailViewController.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/XBMC Remote/DetailViewController.m b/XBMC Remote/DetailViewController.m index 3d3970fca..a30f4f678 100644 --- a/XBMC Remote/DetailViewController.m +++ b/XBMC Remote/DetailViewController.m @@ -4261,10 +4261,10 @@ - (void)addToPlaylist:(NSDictionary*)playlistParams indicator:(UIActivityIndicat - (void)playerOpen:(NSDictionary*)params index:(NSIndexPath*)indexPath { UIActivityIndicatorView *cellActivityIndicator = [self getCellActivityIndicator:indexPath]; - [self playerOpen:params index:indexPath indicator:cellActivityIndicator]; + [self playerOpen:params indicator:cellActivityIndicator]; } -- (void)playerOpen:(NSDictionary*)params index:(NSIndexPath*)indexPath indicator:(UIActivityIndicatorView*)cellActivityIndicator { +- (void)playerOpen:(NSDictionary*)params indicator:(UIActivityIndicatorView*)cellActivityIndicator { [cellActivityIndicator startAnimating]; [[Utilities getJsonRPC] callMethod:@"Player.Open" withParameters:params onCompletion:^(NSString *methodName, NSInteger callId, id methodResult, DSJSONRPCError *methodError, NSError *error) { [cellActivityIndicator stopAnimating]; @@ -4318,11 +4318,11 @@ - (void)startPlayback:(NSDictionary*)item indexPath:(NSIndexPath*)indexPath usin callMethod:@"Player.SetPartymode" withParameters:@{@"playerid": @(0), @"partymode": @NO} onCompletion:^(NSString *methodName, NSInteger callId, id methodResult, DSJSONRPCError *methodError, NSError *internalError) { - [self playerOpen:playbackParams index:indexPath indicator:cellActivityIndicator]; + [self playerOpen:playbackParams indicator:cellActivityIndicator]; }]; } else { - [self playerOpen:playbackParams index:indexPath indicator:cellActivityIndicator]; + [self playerOpen:playbackParams indicator:cellActivityIndicator]; } } @@ -4359,7 +4359,7 @@ - (void)startSlideshow:(NSDictionary*)item indexPath:(NSIndexPath*)indexPath { } }; } - [self playerOpen:playbackParams index:nil indicator:cellActivityIndicator]; + [self playerOpen:playbackParams indicator:cellActivityIndicator]; } - (id)buildPlaylistItems:(NSDictionary*)item key:(id)key {