From aea620374c0adba6a41ad6d348321a8e9afe9e13 Mon Sep 17 00:00:00 2001 From: sryegkahl Date: Wed, 24 May 2006 18:09:44 +0000 Subject: [PATCH] Removed a superfluous (redundant) function I wrote for revision 172 --- Playlist/PlaylistController.h | 3 +-- Playlist/PlaylistController.m | 14 ++------------ Playlist/PlaylistView.m | 2 -- 3 files changed, 3 insertions(+), 16 deletions(-) diff --git a/Playlist/PlaylistController.h b/Playlist/PlaylistController.h index ab8149ab6..e8928b98b 100644 --- a/Playlist/PlaylistController.h +++ b/Playlist/PlaylistController.h @@ -76,6 +76,5 @@ - (NSArray *)acceptablePlaylistTypes; - (IBAction)showFileInFinder:(id)sender; -- (void)setSelectedRow:(int)row; -- (int)selectedRow; + @end diff --git a/Playlist/PlaylistController.m b/Playlist/PlaylistController.m index ef2bacaab..0c798936b 100644 --- a/Playlist/PlaylistController.m +++ b/Playlist/PlaylistController.m @@ -699,21 +699,11 @@ - (IBAction)showFileInFinder:(id)sender { NSWorkspace* ws = [NSWorkspace sharedWorkspace]; - if (selectedRow < 0) + if ([self selectionIndex] < 0) return; - PlaylistEntry* curr = [self entryAtIndex:selectedRow]; + PlaylistEntry* curr = [self entryAtIndex:[self selectionIndex]]; [ws selectFile:[curr filename] inFileViewerRootedAtPath:[curr filename]]; } -- (void)setSelectedRow:(int)row -{ - selectedRow = row; -} - -- (int)selectedRow -{ - return selectedRow; -} - @end diff --git a/Playlist/PlaylistView.m b/Playlist/PlaylistView.m index 2de9c1b10..1bfa6cc2c 100644 --- a/Playlist/PlaylistView.m +++ b/Playlist/PlaylistView.m @@ -74,8 +74,6 @@ if (!currentRowIsSelected) [self selectRow:row byExtendingSelection:NO]; - [playlistController setSelectedRow:[self selectedRow]]; - if ([self numberOfSelectedRows] <=0) { //No rows are selected, so the table should be displayed with all items disabled