More secure coding implementation forgot to remove

This commit is contained in:
Zorg committed 2016-02-28 11:37:35 -05:00
1 parent 8af18843ef
commit d216f30f47
1 file changed
-20
-20
View File
@@ -28,26 +28,6 @@
@synthesize defaultsDomain;
@synthesize usesStandardUserDefaults;
- (instancetype)initWithCoder:(NSCoder *)decoder
{
NSURL *bundleURL = [decoder decodeObjectOfClass:[NSURL class] forKey:@"bundleURL"];
if (bundleURL == nil) {
return nil;
}
NSBundle *aBundle = [NSBundle bundleWithURL:bundleURL];
if (aBundle == nil) {
return nil;
}
return [[[self class] alloc] initWithBundle:aBundle];
}
- (void)encodeWithCoder:(NSCoder *)encoder
{
[encoder encodeObject:self.bundle.bundleURL forKey:@"bundleURL"];
}
- (instancetype)initWithBundle:(NSBundle *)aBundle
{
if ((self = [super init]))