Remove some old IKImageView methods

This commit is contained in:
Damiano Galassi committed 2024-06-30 12:46:56 +02:00
1 parent 5555a95ee6
commit cb5149390f
1 file changed
-29
-29
View File
@@ -7,17 +7,10 @@
//
#import "MP42Image.h"
#import <Quartz/Quartz.h>
#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;