remove unused simulated new version

it's not needed in the tests and currently just adds overhead
This commit is contained in:
Stephan Diederich
2013-07-25 22:50:38 +02:00
parent c92c6b379e
commit d347153e1c
2 changed files with 0 additions and 41 deletions

View File

@@ -54,7 +54,6 @@ typedef enum {
@interface BITStoreUpdateManager : BITHockeyBaseManager
///-----------------------------------------------------------------------------
/// @name Delegate
///-----------------------------------------------------------------------------
@@ -158,29 +157,6 @@ typedef enum {
*/
@property (nonatomic, assign, getter=isUpdateUIEnabled) BOOL updateUIEnabled;
///-----------------------------------------------------------------------------
/// @name Tests
///-----------------------------------------------------------------------------
/**
Define the simulated new version avaialble from the App Store
Set the version string that should be used for a simulated new version being available
in the App Store.
`BITStoreUpdateManager` must be enabled in `BITHockeyManager` for this to work!
*Default*: _NIL_
@warning This property is autoamtically disabled if accidentally being invoked in an
App Store build.
@see updateSetting
@see BITHockeyManager
*/
@property (nonatomic, strong) NSString *simulatedNewStoreVersion;
///-----------------------------------------------------------------------------
/// @name Manual update checking
///-----------------------------------------------------------------------------

View File

@@ -92,7 +92,6 @@
_appStoreURL = nil;
_currentUUID = [[self executableUUID] copy];
_countryCode = nil;
_simulatedNewStoreVersion = nil;
_mainBundle = [NSBundle mainBundle];
_currentLocale = [NSLocale currentLocale];
@@ -238,7 +237,6 @@
#pragma mark - Private
- (BOOL)shouldCancelProcessing {
if (self.simulatedNewStoreVersion) return NO;
if (![self isAppStoreEnvironment]) return YES;
if (![self isStoreUpdateManagerEnabled]) return YES;
return NO;
@@ -263,12 +261,6 @@
self.updateAvailable = [self hasNewVersion:json];
if (self.simulatedNewStoreVersion) {
self.updateAvailable = YES;
_lastCheckFailed = NO;
_newStoreVersion = self.simulatedNewStoreVersion;
}
BITHockeyLog(@"INFO: Update available: %i", self.updateAvailable);
if (_lastCheckFailed) {
@@ -414,15 +406,6 @@
}
}
- (void)setSimulatedNewStoreVersion:(NSString *)aSimulatedNewStoreVersion {
if ([self isAppStoreEnvironment]) return;
if (_simulatedNewStoreVersion != aSimulatedNewStoreVersion) {
_simulatedNewStoreVersion = [aSimulatedNewStoreVersion copy];
}
}
#pragma mark - UIAlertViewDelegate
// invoke the selected action from the action sheet for a location element