Skip to content

Commit

Permalink
Removed MTRDiagnosticLogResult as it is not needed anymore since we a…
Browse files Browse the repository at this point in the history
…re returning a single log file URL
  • Loading branch information
nivi-apple committed Oct 16, 2023
1 parent a5f2199 commit b564024
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions src/darwin/Framework/CHIP/MTRDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,29 +42,6 @@ typedef NS_ENUM(NSInteger, MTRDiagnosticLogType) {

@protocol MTRDeviceDelegate;

MTR_PROVISIONALLY_AVAILABLE
@interface MTRDiagnosticLogResult : NSObject

/**
* The URL representing the location of the end user support log file that was downloaded.
* If no end user support log was requested or retrieved, this will be set to nil.
*/
@property (readonly, nonatomic, nullable) NSURL * endUserSupportLog;

/**
* The URL representing the location of the network diagnostics log file that was downloaded.
* If no network diagnostics log was requested or retreived, this will be set to nil.
*/
@property (readonly, nonatomic, nullable) NSURL * networkDiagnosticsLog;

/**
* The URL representing the location of the crash log file that was downloaded.
* If no crash log was requested or retrieved, this will be set to nil.
*/
@property (readonly, nonatomic, nullable) NSURL * crashLog;

@end

@interface MTRDevice : NSObject
- (instancetype)init NS_UNAVAILABLE;
+ (instancetype)new NS_UNAVAILABLE;
Expand Down Expand Up @@ -252,7 +229,7 @@ MTR_PROVISIONALLY_AVAILABLE
- (void)downloadLogOfType:(MTRDiagnosticLogType)type
timeout:(NSTimeInterval)timeout
queue:(dispatch_queue_t)queue
completion:(void (^)(MTRDiagnosticLogResult * _Nullable logResult, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
completion:(void (^)(NSURL * _Nullable logURL, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;

@end

Expand Down

0 comments on commit b564024

Please sign in to comment.