summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicoleYarroch <nicole@livio.io>2019-06-04 09:59:21 -0400
committerNicoleYarroch <nicole@livio.io>2019-06-04 09:59:21 -0400
commite31c41e7ef183f9148a6e2f2fdeb85d34ca51dbd (patch)
treeb5174c342e2ba00b5301113cf7aa49a02d98a5b9
parent335ca76d338ac11ee235a3c4c7066c698b6c4275 (diff)
downloadsdl_ios-e31c41e7ef183f9148a6e2f2fdeb85d34ca51dbd.tar.gz
Removed unused var
-rw-r--r--SmartDeviceLink/SDLIAPTransport.m5
1 files changed, 2 insertions, 3 deletions
diff --git a/SmartDeviceLink/SDLIAPTransport.m b/SmartDeviceLink/SDLIAPTransport.m
index 0caaebe8b..b420a98ba 100644
--- a/SmartDeviceLink/SDLIAPTransport.m
+++ b/SmartDeviceLink/SDLIAPTransport.m
@@ -334,13 +334,12 @@ int const CreateSessionRetries = 3;
self.retryCounter++;
// If the accessory is not `nil` attempt to create a session with the accessory.
- EAAccessory *sdlAccessory = accessory;
- if (sdlAccessory != nil && [self sdl_establishSessionWithConnectedAccessory:sdlAccessory]) {
+ if (accessory != nil && [self sdl_establishSessionWithConnectedAccessory:accessory]) {
// Session was created successfully with the accessory
return;
}
- // Search through the EAAccessoryManager's connected accessory list for an SDL enabled accessory and if successful create a session with the accessory.
+ // Search through the EAAccessoryManager's connected accessory list for an SDL enabled accessory and attempt to create a session with the accessory.
BOOL sessionEstablished = [self sdl_establishSessionWithAccessory];
if (!sessionEstablished) {
SDLLogV(@"No accessory supporting SDL was found, dismissing setup. Available connected accessories: %@", EAAccessoryManager.sharedAccessoryManager.connectedAccessories);