Removed an unused ivar in MP42Metadata.
This commit is contained in:
1 parent
b0258bfca5
commit
f8a408ff9b
3 files changed
+4
-9
No files matched your search
+1
-1
@@ -237,7 +237,7 @@ static void logCallback(MP4LogLevel loglevel, const char *fmt, va_list ap) {
|
||||
[self loadPreviewsFromTrackID:previewsId];
|
||||
|
||||
// Load the metadata
|
||||
_metadata = [[MP42Metadata alloc] initWithSourceURL:_fileURL fileHandle:_fileHandle];
|
||||
_metadata = [[MP42Metadata alloc] initWithFileHandle:_fileHandle];
|
||||
|
||||
// Initialize things
|
||||
_hasFileRepresentation = YES;
|
||||
|
||||
+2
-2
@@ -12,7 +12,6 @@
|
||||
@interface MP42Metadata : NSObject <NSCoding, NSCopying> {
|
||||
@private
|
||||
NSString *presetName;
|
||||
NSURL *sourceURL;
|
||||
NSMutableDictionary *tagsDict;
|
||||
|
||||
NSMutableArray *artworks;
|
||||
@@ -28,11 +27,12 @@
|
||||
uint8_t hdVideo;
|
||||
uint8_t gapless;
|
||||
uint8_t podcast;
|
||||
|
||||
BOOL isEdited;
|
||||
BOOL isArtworkEdited;
|
||||
}
|
||||
|
||||
- (instancetype) initWithSourceURL:(NSURL *)URL fileHandle:(MP42FileHandle)fileHandle;
|
||||
- (instancetype) initWithFileHandle:(MP42FileHandle)fileHandle;
|
||||
- (instancetype) initWithFileURL:(NSURL *)URL;
|
||||
|
||||
- (NSArray *) availableMetadata;
|
||||
|
||||
+1
-6
@@ -219,7 +219,6 @@ static const genreType_t genreType_strings[] = {
|
||||
if ((self = [super init]))
|
||||
{
|
||||
presetName = @"Unnamed Set";
|
||||
sourceURL = nil;
|
||||
tagsDict = [[NSMutableDictionary alloc] init];
|
||||
artworks = [[NSMutableArray alloc] init];
|
||||
isEdited = NO;
|
||||
@@ -229,10 +228,9 @@ static const genreType_t genreType_strings[] = {
|
||||
return self;
|
||||
}
|
||||
|
||||
- (instancetype)initWithSourceURL:(NSURL *)URL fileHandle:(MP4FileHandle)fileHandle
|
||||
- (instancetype)initWithFileHandle:(MP4FileHandle)fileHandle
|
||||
{
|
||||
if ((self = [self init])) {
|
||||
sourceURL = [URL copy];
|
||||
[self readMetaDataFromFileHandle: fileHandle];
|
||||
}
|
||||
|
||||
@@ -242,8 +240,6 @@ static const genreType_t genreType_strings[] = {
|
||||
- (instancetype)initWithFileURL:(NSURL *)URL;
|
||||
{
|
||||
if ((self = [self init])) {
|
||||
sourceURL = [URL copy];
|
||||
|
||||
MP42XMLReader *xmlReader = [[MP42XMLReader alloc] initWithURL:URL error:NULL];
|
||||
[self mergeMetadata:[xmlReader mMetadata]];
|
||||
[xmlReader release];
|
||||
@@ -255,7 +251,6 @@ static const genreType_t genreType_strings[] = {
|
||||
-(void) dealloc
|
||||
{
|
||||
[presetName release];
|
||||
[sourceURL release];
|
||||
|
||||
[artworks release];
|
||||
|
||||
|
||||
Reference in new issue
Block a user