mirror of https://github.com/opa334/TrollStore.git
Use sets for dedupe
This commit is contained in:
parent
ff0c2a2fb5
commit
335420aba4
|
@ -858,7 +858,7 @@ extern UIImage* imageWithSize(UIImage* image, CGSize size);
|
||||||
}
|
}
|
||||||
}];
|
}];
|
||||||
|
|
||||||
__block NSMutableArray* accessibleContainers = [NSMutableArray new];
|
__block NSMutableSet* accessibleContainers = [NSMutableSet new];
|
||||||
if(!unrestrictedContainerAccess)
|
if(!unrestrictedContainerAccess)
|
||||||
{
|
{
|
||||||
[self enumerateAllInfoDictionaries:^(NSString *key, NSObject *value, BOOL *stop) {
|
[self enumerateAllInfoDictionaries:^(NSString *key, NSObject *value, BOOL *stop) {
|
||||||
|
@ -898,7 +898,7 @@ extern UIImage* imageWithSize(UIImage* image, CGSize size);
|
||||||
// keychain-access-groups
|
// keychain-access-groups
|
||||||
// Unrestricted if single * (maybe?)
|
// Unrestricted if single * (maybe?)
|
||||||
__block BOOL unrestrictedKeychainAccess = NO;
|
__block BOOL unrestrictedKeychainAccess = NO;
|
||||||
__block NSMutableArray* accessibleKeychainGroups = [NSMutableArray new];
|
__block NSMutableSet* accessibleKeychainGroups = [NSMutableSet new];
|
||||||
[self enumerateAllEntitlements:^(NSString *key, NSObject *value, BOOL *stop) {
|
[self enumerateAllEntitlements:^(NSString *key, NSObject *value, BOOL *stop) {
|
||||||
if([key isEqualToString:@"keychain-access-groups"])
|
if([key isEqualToString:@"keychain-access-groups"])
|
||||||
{
|
{
|
||||||
|
@ -923,7 +923,7 @@ extern UIImage* imageWithSize(UIImage* image, CGSize size);
|
||||||
}
|
}
|
||||||
}];
|
}];
|
||||||
|
|
||||||
__block NSMutableArray* URLSchemes = [NSMutableArray new];
|
__block NSMutableSet* URLSchemes = [NSMutableSet new];
|
||||||
[self enumerateAllInfoDictionaries:^(NSString *key, NSObject *value, BOOL *stop) {
|
[self enumerateAllInfoDictionaries:^(NSString *key, NSObject *value, BOOL *stop) {
|
||||||
if([key isEqualToString:@"CFBundleURLTypes"])
|
if([key isEqualToString:@"CFBundleURLTypes"])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue