Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
f87ebe5b
Commit
f87ebe5b
authored
Mar 31, 2008
by
riquedafreak
Browse files
VLCKit.framework: Remove dead code from VLCTime object.
parent
0b34e2c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
projects/macosx/framework/Headers/Public/VLCTime.h
View file @
f87ebe5b
...
...
@@ -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
;
...
...
projects/macosx/framework/Sources/VLCTime.m
View file @
f87ebe5b
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment