From 23059125376a3a2543dcd26b0c669d10eb1f0f99 Mon Sep 17 00:00:00 2001 From: Vivien Nicolas Date: Wed, 11 May 2022 17:40:38 +0200 Subject: [PATCH] [ChipTool] Remove some dead code in CHIPTests/CHIPClustersTests.m (#18305) --- .../Framework/CHIPTests/CHIPClustersTests.m | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/darwin/Framework/CHIPTests/CHIPClustersTests.m b/src/darwin/Framework/CHIPTests/CHIPClustersTests.m index f94c3422a567f1..065dfb5c91545c 100644 --- a/src/darwin/Framework/CHIPTests/CHIPClustersTests.m +++ b/src/darwin/Framework/CHIPTests/CHIPClustersTests.m @@ -27,15 +27,10 @@ #import "CHIPTestKeys.h" #import "CHIPTestStorage.h" -#import - -#import // For INFINITY - // system dependencies #import const uint16_t kPairingTimeoutInSeconds = 10; -const uint16_t kAddressResolveTimeoutInSeconds = 10; const uint16_t kCASESetupTimeoutInSeconds = 30; const uint16_t kTimeoutInSeconds = 20; const uint64_t nodeId = 0x12344321; @@ -45,19 +40,9 @@ NSString * kAddress = @"::1"; static uint16_t kTestVendorId = 0xFFF1u; -// This test suite reuses a device object to speed up the test process for CI. -// The following global variable holds the reference to the device object. -static CHIPDevice * mConnectedDevice; - // Singleton controller we use. static CHIPDeviceController * sController = nil; -CHIPDevice * GetConnectedDevice(void) -{ - XCTAssertNotNil(mConnectedDevice); - return mConnectedDevice; -} - @interface CHIPToolPairingDelegate : NSObject @property (nonatomic, strong) XCTestExpectation * expectation; @end