Permalink
Browse files

Remove GC related code and only support ref-counting

  • Loading branch information...
qxjit authored and Hammer committed Feb 3, 2010
1 parent 4682116 commit 0d26fe12ef7f1386f1863525d4f9062d65f5fb59
Showing with 0 additions and 8 deletions.
  1. +0 −2 CocoaJukeboxPlayer.m
  2. +0 −6 Jukebox.m
View
@@ -52,7 +52,6 @@ BOOL stopHammertime() {
[Jukebox pause];
[hammertime stop];
- NSMakeCollectable(hammertime);
[hammertime release];
hammertime = nil;
@@ -87,7 +86,6 @@ BOOL skipCurrentTrack() {
return false;
[currentTrack stop];
- NSMakeCollectable(currentTrack);
[currentTrack release];
currentTrack = nil;
View
@@ -18,8 +18,6 @@ + (void) pause {
+ (NSSound*) nextPlaylistEntry {
NSSound* playlistEntry = [[NSSound alloc] initWithContentsOfFile:[self get: @"next_entry"] byReference:YES];
- NSMakeCollectable(playlistEntry);
-
return [playlistEntry autorelease];
}
@@ -35,8 +33,6 @@ + (Hammertime*) nextHammertime {
BOOL pause = [[components objectAtIndex:3] isEqual:@"pause"];
Hammertime* hammertime = [[Hammertime alloc] initWithFile:file StartTime:start endTime:end pauseAfter:pause];
- NSMakeCollectable(hammertime);
-
return [hammertime autorelease];
}
@@ -59,8 +55,6 @@ + (NSString*) request: (NSString*) element withMethod: (NSString*) method {
NSData *urlData = [NSURLConnection sendSynchronousRequest:urlRequest returningResponse:&response error:&error];
NSString* responseString = [[NSString alloc] initWithData:urlData encoding:NSASCIIStringEncoding];
- NSMakeCollectable(responseString);
-
return [responseString autorelease];
}
@end

0 comments on commit 0d26fe1

Please sign in to comment.