Revision: 7238
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7238&view=rev
Author:   hofman
Date:     2011-05-15 22:07:45 +0000 (Sun, 15 May 2011)

Log Message:
-----------
remove unneeded parameter from method

Modified Paths:
--------------
    trunk/SKMainWindowController.m
    trunk/SKMainWindowController_UI.m

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2011-05-15 21:57:31 UTC (rev 7237)
+++ trunk/SKMainWindowController.m      2011-05-15 22:07:45 UTC (rev 7238)
@@ -177,7 +177,7 @@
 - (SKProgressController *)progressController;
 
 - (void)goToSelectedFindResults:(id)sender;
-- (void)updateFindResultHighlights:(BOOL)scroll direction:(NSInteger)direction;
+- (void)updateFindResultHighlightsForDirection:(NSInteger)direction;
 
 - (void)selectSelectedNote:(id)sender;
 - (void)goToSelectedOutlineItem:(id)sender;
@@ -970,7 +970,7 @@
             if ([leftSideController.findTableView window])
                 [self displayGroupedFindViewAnimating:NO];
         }
-        [self updateFindResultHighlights:YES direction:0];
+        [self updateFindResultHighlightsForDirection:0];
     }
 }
 
@@ -1707,7 +1707,7 @@
     return [[[self pdfView] currentSelection] string];
 }
 
-- (void)updateFindResultHighlights:(BOOL)scroll direction:(NSInteger)direction 
{
+- (void)updateFindResultHighlightsForDirection:(NSInteger)direction {
     NSArray *findResults = nil;
     
     if (mwcFlags.findPaneState == SKSingularFindPaneState && 
[leftSideController.findTableView window])
@@ -1733,7 +1733,7 @@
     
         PDFSelection *currentSel = [findResults 
objectAtIndex:searchResultIndex];
         
-        if (scroll && [currentSel hasCharacters]) {
+        if ([currentSel hasCharacters]) {
             PDFPage *page = [currentSel safeFirstPage];
             NSRect rect = NSZeroRect;
             
@@ -1757,7 +1757,7 @@
 }
 
 - (void)goToSelectedFindResults:(id)sender {
-    [self updateFindResultHighlights:YES direction:0];
+    [self updateFindResultHighlightsForDirection:0];
 }
 
 - (IBAction)searchNotes:(id)sender {

Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m   2011-05-15 21:57:31 UTC (rev 7237)
+++ trunk/SKMainWindowController_UI.m   2011-05-15 22:07:45 UTC (rev 7238)
@@ -98,7 +98,7 @@
 
 - (void)updateNoteFilterPredicate;
 
-- (void)updateFindResultHighlights:(BOOL)scroll direction:(NSInteger)direction;
+- (void)updateFindResultHighlightsForDirection:(NSInteger)direction;
 
 - (void)observeUndoManagerCheckpoint:(NSNotification *)notification;
 
@@ -356,7 +356,7 @@
 
 - (void)tableViewSelectionDidChange:(NSNotification *)aNotification {
     if ([[aNotification object] isEqual:leftSideController.findTableView] || 
[[aNotification object] isEqual:leftSideController.groupedFindTableView]) {
-        [self updateFindResultHighlights:YES direction:0];
+        [self updateFindResultHighlightsForDirection:0];
         
         if ([self interactionMode] == SKPresentationMode && [[NSUserDefaults 
standardUserDefaults] boolForKey:SKAutoHidePresentationContentsKey])
             [self hideLeftSideWindow];
@@ -491,13 +491,13 @@
 
 - (void)tableViewMoveLeft:(NSTableView *)tv {
     if (([tv isEqual:leftSideController.findTableView] || [tv 
isEqual:leftSideController.groupedFindTableView])) {
-        [self updateFindResultHighlights:YES direction:-1];
+        [self updateFindResultHighlightsForDirection:-1];
     }
 }
 
 - (void)tableViewMoveRight:(NSTableView *)tv {
     if (([tv isEqual:leftSideController.findTableView] || [tv 
isEqual:leftSideController.groupedFindTableView])) {
-        [self updateFindResultHighlights:YES direction:1];
+        [self updateFindResultHighlightsForDirection:1];
     }
 }
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to