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];
|
[self loadPreviewsFromTrackID:previewsId];
|
||||||
|
|
||||||
// Load the metadata
|
// Load the metadata
|
||||||
_metadata = [[MP42Metadata alloc] initWithSourceURL:_fileURL fileHandle:_fileHandle];
|
_metadata = [[MP42Metadata alloc] initWithFileHandle:_fileHandle];
|
||||||
|
|
||||||
// Initialize things
|
// Initialize things
|
||||||
_hasFileRepresentation = YES;
|
_hasFileRepresentation = YES;
|
||||||
|
|||||||
+2
-2
@@ -12,7 +12,6 @@
|
|||||||
@interface MP42Metadata : NSObject <NSCoding, NSCopying> {
|
@interface MP42Metadata : NSObject <NSCoding, NSCopying> {
|
||||||
@private
|
@private
|
||||||
NSString *presetName;
|
NSString *presetName;
|
||||||
NSURL *sourceURL;
|
|
||||||
NSMutableDictionary *tagsDict;
|
NSMutableDictionary *tagsDict;
|
||||||
|
|
||||||
NSMutableArray *artworks;
|
NSMutableArray *artworks;
|
||||||
@@ -28,11 +27,12 @@
|
|||||||
uint8_t hdVideo;
|
uint8_t hdVideo;
|
||||||
uint8_t gapless;
|
uint8_t gapless;
|
||||||
uint8_t podcast;
|
uint8_t podcast;
|
||||||
|
|
||||||
BOOL isEdited;
|
BOOL isEdited;
|
||||||
BOOL isArtworkEdited;
|
BOOL isArtworkEdited;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (instancetype) initWithSourceURL:(NSURL *)URL fileHandle:(MP42FileHandle)fileHandle;
|
- (instancetype) initWithFileHandle:(MP42FileHandle)fileHandle;
|
||||||
- (instancetype) initWithFileURL:(NSURL *)URL;
|
- (instancetype) initWithFileURL:(NSURL *)URL;
|
||||||
|
|
||||||
- (NSArray *) availableMetadata;
|
- (NSArray *) availableMetadata;
|
||||||
|
|||||||
+1
-6
@@ -219,7 +219,6 @@ static const genreType_t genreType_strings[] = {
|
|||||||
if ((self = [super init]))
|
if ((self = [super init]))
|
||||||
{
|
{
|
||||||
presetName = @"Unnamed Set";
|
presetName = @"Unnamed Set";
|
||||||
sourceURL = nil;
|
|
||||||
tagsDict = [[NSMutableDictionary alloc] init];
|
tagsDict = [[NSMutableDictionary alloc] init];
|
||||||
artworks = [[NSMutableArray alloc] init];
|
artworks = [[NSMutableArray alloc] init];
|
||||||
isEdited = NO;
|
isEdited = NO;
|
||||||
@@ -229,10 +228,9 @@ static const genreType_t genreType_strings[] = {
|
|||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (instancetype)initWithSourceURL:(NSURL *)URL fileHandle:(MP4FileHandle)fileHandle
|
- (instancetype)initWithFileHandle:(MP4FileHandle)fileHandle
|
||||||
{
|
{
|
||||||
if ((self = [self init])) {
|
if ((self = [self init])) {
|
||||||
sourceURL = [URL copy];
|
|
||||||
[self readMetaDataFromFileHandle: fileHandle];
|
[self readMetaDataFromFileHandle: fileHandle];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -242,8 +240,6 @@ static const genreType_t genreType_strings[] = {
|
|||||||
- (instancetype)initWithFileURL:(NSURL *)URL;
|
- (instancetype)initWithFileURL:(NSURL *)URL;
|
||||||
{
|
{
|
||||||
if ((self = [self init])) {
|
if ((self = [self init])) {
|
||||||
sourceURL = [URL copy];
|
|
||||||
|
|
||||||
MP42XMLReader *xmlReader = [[MP42XMLReader alloc] initWithURL:URL error:NULL];
|
MP42XMLReader *xmlReader = [[MP42XMLReader alloc] initWithURL:URL error:NULL];
|
||||||
[self mergeMetadata:[xmlReader mMetadata]];
|
[self mergeMetadata:[xmlReader mMetadata]];
|
||||||
[xmlReader release];
|
[xmlReader release];
|
||||||
@@ -255,7 +251,6 @@ static const genreType_t genreType_strings[] = {
|
|||||||
-(void) dealloc
|
-(void) dealloc
|
||||||
{
|
{
|
||||||
[presetName release];
|
[presetName release];
|
||||||
[sourceURL release];
|
|
||||||
|
|
||||||
[artworks release];
|
[artworks release];
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user