Commit f87ebe5b authored by Faustino Osuna's avatar Faustino Osuna

VLCKit.framework: Remove dead code from VLCTime object.

parent 0b34e2c0
......@@ -35,11 +35,9 @@
/* Factories */
+ (VLCTime *)nullTime;
+ (VLCTime *)timeWithNumber:(NSNumber *)aNumber;
//+ (VLCTime *)timeWithString:(NSString *)aString;
/* Initializers */
- (id)initWithNumber:(NSNumber *)aNumber;
//- (id)initWithString:(NSString *)aString;
/* Properties */
@property (readonly) NSNumber * numberValue;
......
......@@ -25,6 +25,7 @@
#import <VLCTime.h>
@implementation VLCTime
/* Factories */
+ (VLCTime *)nullTime
{
static VLCTime * nullTime = nil;
......@@ -38,12 +39,7 @@
return [[[VLCTime alloc] initWithNumber:aNumber] autorelease];
}
// TODO: Implement [VLCTime timeWithString]
//+ (VLCTime *)timeWithString:(NSString *)aString
//{
// return [[[VLCTime alloc] initWithString:aString] autorelease];
//}
/* Initializers */
- (id)initWithNumber:(NSNumber *)aNumber
{
if (self = [super init])
......@@ -56,23 +52,19 @@
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
{
[value release];
[super dealloc];
}
/* NSObject Overrides */
- (NSString *)description
{
return self.stringValue;
}
/* Operations */
- (NSNumber *)numberValue
{
return value ? [[value copy] autorelease] : nil;
......@@ -104,9 +96,4 @@
else
return [value compare:aTime.numberValue];
}
- (NSString *)description
{
return self.stringValue;
}
@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