mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-03 13:13:55 +00:00
remove unnecessary property
This commit is contained in:
parent
c62b444272
commit
50b0eb9bd1
@ -173,10 +173,6 @@ typedef NS_ENUM(NSUInteger, BITCrashManagerUserInput) {
|
||||
* the debugger during runtime, this may cause issues the Mach exception handler is enabled!
|
||||
* @see isDebuggerAttached
|
||||
*/
|
||||
|
||||
@property (nonatomic, assign) BITCrashManagerUserInput crashManagerUserInput;
|
||||
|
||||
|
||||
@property (nonatomic, assign, getter=isMachExceptionHandlerEnabled) BOOL enableMachExceptionHandler;
|
||||
|
||||
|
||||
|
||||
@ -930,12 +930,11 @@ NSString *const kBITCrashManagerStatus = @"BITCrashManagerStatus";
|
||||
#pragma mark - UIAlertView Delegate
|
||||
|
||||
- (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex {
|
||||
_crashManagerUserInput = buttonIndex;
|
||||
[self handleUserInput];
|
||||
[self handleUserInput:buttonIndex];
|
||||
}
|
||||
|
||||
- (void)handleUserInput {
|
||||
switch (_crashManagerUserInput) {
|
||||
- (void)handleUserInput:(BITCrashManagerUserInput)userInput {
|
||||
switch (userInput) {
|
||||
case BITCrashManagerUserInputDontSend:
|
||||
if (self.delegate != nil && [self.delegate respondsToSelector:@selector(crashManagerWillCancelSendingCrashReport:)]) {
|
||||
[self.delegate crashManagerWillCancelSendingCrashReport:self];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user