]> git.sesse.net Git - vlc/commitdiff
VLCKit.framework: Remove dead code from VLCTime object.
authorFaustino Osuna <enrique.osuna@gmail.com>
Mon, 31 Mar 2008 22:57:19 +0000 (23:57 +0100)
committerFaustino Osuna <enrique.osuna@gmail.com>
Mon, 31 Mar 2008 22:57:19 +0000 (23:57 +0100)
projects/macosx/framework/Headers/Public/VLCTime.h
projects/macosx/framework/Sources/VLCTime.m

index 61a53a00ec620128e0f40c6a0db9fc53e00a7f7e..6ebac8b29eb2bf323f25c076f7c3d2c564f6e19c 100644 (file)
 /* 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;
index 566d94b1a964909c5e6b20d48082c04886149952..d79fa06d054d6154e2126208338bb7232e271861 100644 (file)
@@ -25,6 +25,7 @@
 #import <VLCTime.h>
 
 @implementation VLCTime
+/* Factories */
 + (VLCTime *)nullTime
 {
     static VLCTime * nullTime = nil;
     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])
     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;
     else
         return [value compare:aTime.numberValue];
 }
-
-- (NSString *)description
-{
-    return self.stringValue;
-}
 @end