diff --git a/MP42/MP42Image.m b/MP42/MP42Image.m index 600f7e0..12a278e 100644 --- a/MP42/MP42Image.m +++ b/MP42/MP42Image.m @@ -7,17 +7,10 @@ // #import "MP42Image.h" -#import #import "MP42Utilities.h" NSPasteboardType const MP42PasteboardTypeArtwork = @"org.subler.artworkdata"; -@interface MP42Image () - -@property (atomic, readonly) NSString *uuid; - -@end - MP42_OBJC_DIRECT_MEMBERS @implementation MP42Image { NSImage *_image; @@ -26,7 +19,6 @@ MP42_OBJC_DIRECT_MEMBERS @synthesize url = _url; @synthesize data = _data; @synthesize type = _type; -@synthesize uuid = _uuid; - (instancetype)initWithURL:(NSURL *)url type:(MP42TagArtworkType)type { @@ -119,27 +111,6 @@ MP42_OBJC_DIRECT_MEMBERS return _image; } -- (NSString *)uuid -{ - @synchronized(self) { - if (_uuid == nil) { - _uuid = [[NSProcessInfo processInfo] globallyUniqueString]; - } - } - - return _uuid; -} - -- (NSString *)imageUID -{ - return self.uuid; -} - -- (id)imageRepresentation -{ - return self.image; -} - + (BOOL)supportsSecureCoding { return YES;