remove unnecessary property

This commit is contained in:
Lukas Spieß 2014-03-28 12:39:06 +01:00
parent c62b444272
commit 50b0eb9bd1
2 changed files with 3 additions and 8 deletions

View File

@ -173,10 +173,6 @@ typedef NS_ENUM(NSUInteger, BITCrashManagerUserInput) {
* the debugger during runtime, this may cause issues the Mach exception handler is enabled! * the debugger during runtime, this may cause issues the Mach exception handler is enabled!
* @see isDebuggerAttached * @see isDebuggerAttached
*/ */
@property (nonatomic, assign) BITCrashManagerUserInput crashManagerUserInput;
@property (nonatomic, assign, getter=isMachExceptionHandlerEnabled) BOOL enableMachExceptionHandler; @property (nonatomic, assign, getter=isMachExceptionHandlerEnabled) BOOL enableMachExceptionHandler;

View File

@ -930,12 +930,11 @@ NSString *const kBITCrashManagerStatus = @"BITCrashManagerStatus";
#pragma mark - UIAlertView Delegate #pragma mark - UIAlertView Delegate
- (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex { - (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex {
_crashManagerUserInput = buttonIndex; [self handleUserInput:buttonIndex];
[self handleUserInput];
} }
- (void)handleUserInput { - (void)handleUserInput:(BITCrashManagerUserInput)userInput {
switch (_crashManagerUserInput) { switch (userInput) {
case BITCrashManagerUserInputDontSend: case BITCrashManagerUserInputDontSend:
if (self.delegate != nil && [self.delegate respondsToSelector:@selector(crashManagerWillCancelSendingCrashReport:)]) { if (self.delegate != nil && [self.delegate respondsToSelector:@selector(crashManagerWillCancelSendingCrashReport:)]) {
[self.delegate crashManagerWillCancelSendingCrashReport:self]; [self.delegate crashManagerWillCancelSendingCrashReport:self];