Revision: 14306
          http://sourceforge.net/p/skim-app/code/14306
Author:   hofman
Date:     2024-06-05 23:15:57 +0000 (Wed, 05 Jun 2024)
Log Message:
-----------
remove some unused actions

Modified Paths:
--------------
    trunk/SKMainWindowController_Actions.h
    trunk/SKMainWindowController_Actions.m
    trunk/SKMainWindowController_UI.m

Modified: trunk/SKMainWindowController_Actions.h
===================================================================
--- trunk/SKMainWindowController_Actions.h      2024-06-05 22:41:03 UTC (rev 
14305)
+++ trunk/SKMainWindowController_Actions.h      2024-06-05 23:15:57 UTC (rev 
14306)
@@ -66,10 +66,6 @@
 - (IBAction)doGoToPreviousPage:(nullable id)sender;
 - (IBAction)doGoToFirstPage:(nullable id)sender;
 - (IBAction)doGoToLastPage:(nullable id)sender;
-- (IBAction)allGoToNextPage:(nullable id)sender;
-- (IBAction)allGoToPreviousPage:(nullable id)sender;
-- (IBAction)allGoToFirstPage:(nullable id)sender;
-- (IBAction)allGoToLastPage:(nullable id)sender;
 - (IBAction)doGoToPage:(nullable id)sender;
 - (IBAction)doGoBack:(nullable id)sender;
 - (IBAction)doGoForward:(nullable id)sender;

Modified: trunk/SKMainWindowController_Actions.m
===================================================================
--- trunk/SKMainWindowController_Actions.m      2024-06-05 22:41:03 UTC (rev 
14305)
+++ trunk/SKMainWindowController_Actions.m      2024-06-05 23:15:57 UTC (rev 
14306)
@@ -345,31 +345,6 @@
     [pdfView goToLastPage:sender];
 }
 
-static NSArray *allMainDocumentPDFViews() {
-    NSMutableArray *array = [NSMutableArray array];
-    for (id document in [[NSDocumentController sharedDocumentController] 
documents]) {
-        if ([document respondsToSelector:@selector(pdfView)])
-            [array addObject:[document pdfView]];
-    }
-    return array;
-}
-
-- (IBAction)allGoToNextPage:(id)sender {
-    [allMainDocumentPDFViews() 
makeObjectsPerformSelector:@selector(goToNextPage:) withObject:sender];
-}
-
-- (IBAction)allGoToPreviousPage:(id)sender {
-    [allMainDocumentPDFViews() 
makeObjectsPerformSelector:@selector(goToPreviousPage:) withObject:sender];
-}
-
-- (IBAction)allGoToFirstPage:(id)sender {
-    [allMainDocumentPDFViews() 
makeObjectsPerformSelector:@selector(goToFirstPage:) withObject:sender];
-}
-
-- (IBAction)allGoToLastPage:(id)sender {
-    [allMainDocumentPDFViews() 
makeObjectsPerformSelector:@selector(goToLastPage:) withObject:sender];
-}
-
 - (IBAction)doGoToPage:(id)sender {
     SKTextFieldSheetController *pageSheetController = 
[[SKTextFieldSheetController alloc] initWithWindowNibName:@"PageSheet"];
     

Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m   2024-06-05 22:41:03 UTC (rev 14305)
+++ trunk/SKMainWindowController_UI.m   2024-06-05 23:15:57 UTC (rev 14306)
@@ -1727,15 +1727,6 @@
 
 #pragma mark UI validation
 
-static NSArray *allMainDocumentPDFViews() {
-    NSMutableArray *array = [NSMutableArray array];
-    for (id document in [[NSDocumentController sharedDocumentController] 
documents]) {
-        if ([document respondsToSelector:@selector(pdfView)])
-            [array addObject:[document pdfView]];
-    }
-    return array;
-}
-
 - (BOOL)validateMenuItem:(NSMenuItem *)menuItem {
     SEL action = [menuItem action];
     if (action == @selector(createNewNote:)) {
@@ -1791,14 +1782,6 @@
         return [pdfView canGoToLastPage];
     } else if (action == @selector(doGoToPage:)) {
         return [[self pdfDocument] isLocked] == NO;
-    } else if (action == @selector(allGoToNextPage:)) {
-        return [[allMainDocumentPDFViews() 
valueForKeyPath:@"@min.canGoToNextPage"] boolValue];
-    } else if (action == @selector(allGoToPreviousPage:)) {
-        return [[allMainDocumentPDFViews() 
valueForKeyPath:@"@min.canGoToPreviousPage"] boolValue];
-    } else if (action == @selector(allGoToFirstPage:)) {
-        return [[allMainDocumentPDFViews() 
valueForKeyPath:@"@min.canGoToFirstPage"] boolValue];
-    } else if (action == @selector(allGoToLastPage:)) {
-        return [[allMainDocumentPDFViews() 
valueForKeyPath:@"@min.canGoToLastPage"] boolValue];
     } else if (action == @selector(doGoBack:)) {
         return [pdfView canGoBack];
     } else if (action == @selector(doGoForward:)) {

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



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to