Commit f87ebe5b authored by Faustino Osuna's avatar Faustino Osuna

VLCKit.framework: Remove dead code from VLCTime object.

parent 0b34e2c0
...@@ -35,11 +35,9 @@ ...@@ -35,11 +35,9 @@
/* Factories */ /* Factories */
+ (VLCTime *)nullTime; + (VLCTime *)nullTime;
+ (VLCTime *)timeWithNumber:(NSNumber *)aNumber; + (VLCTime *)timeWithNumber:(NSNumber *)aNumber;
//+ (VLCTime *)timeWithString:(NSString *)aString;
/* Initializers */ /* Initializers */
- (id)initWithNumber:(NSNumber *)aNumber; - (id)initWithNumber:(NSNumber *)aNumber;
//- (id)initWithString:(NSString *)aString;
/* Properties */ /* Properties */
@property (readonly) NSNumber * numberValue; @property (readonly) NSNumber * numberValue;
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#import <VLCTime.h> #import <VLCTime.h>
@implementation VLCTime @implementation VLCTime
/* Factories */
+ (VLCTime *)nullTime + (VLCTime *)nullTime
{ {
static VLCTime * nullTime = nil; static VLCTime * nullTime = nil;
...@@ -38,12 +39,7 @@ ...@@ -38,12 +39,7 @@
return [[[VLCTime alloc] initWithNumber:aNumber] autorelease]; return [[[VLCTime alloc] initWithNumber:aNumber] autorelease];
} }
// TODO: Implement [VLCTime timeWithString] /* Initializers */
//+ (VLCTime *)timeWithString:(NSString *)aString
//{
// return [[[VLCTime alloc] initWithString:aString] autorelease];
//}
- (id)initWithNumber:(NSNumber *)aNumber - (id)initWithNumber:(NSNumber *)aNumber
{ {
if (self = [super init]) if (self = [super init])
...@@ -56,23 +52,19 @@ ...@@ -56,23 +52,19 @@
return self; return self;
} }
// TODO: Implement [VLCTime initWithString]
//- (id)initWithString:(NSString *)aString
//{
// // Sounds like a good idea but I really don't think there is any value added
// if (self = [super init])
// {
// // convert value
// }
// return self;
//}
- (void)dealloc - (void)dealloc
{ {
[value release]; [value release];
[super dealloc]; [super dealloc];
} }
/* NSObject Overrides */
- (NSString *)description
{
return self.stringValue;
}
/* Operations */
- (NSNumber *)numberValue - (NSNumber *)numberValue
{ {
return value ? [[value copy] autorelease] : nil; return value ? [[value copy] autorelease] : nil;
...@@ -104,9 +96,4 @@ ...@@ -104,9 +96,4 @@
else else
return [value compare:aTime.numberValue]; return [value compare:aTime.numberValue];
} }
- (NSString *)description
{
return self.stringValue;
}
@end @end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment