Revision: 30094
          http://sourceforge.net/p/bibdesk/svn/30094
Author:   hofman
Date:     2026-03-01 22:04:24 +0000 (Sun, 01 Mar 2026)
Log Message:
-----------
no need for separate method, one line of code

Modified Paths:
--------------
    trunk/bibdesk/BDSKEditor.m

Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m  2026-03-01 21:58:58 UTC (rev 30093)
+++ trunk/bibdesk/BDSKEditor.m  2026-03-01 22:04:24 UTC (rev 30094)
@@ -1716,11 +1716,6 @@
     return NO;
 }
 
-- (void)trashFileURLs:(NSArray *)fileURLs
-{
-    [[NSWorkspace sharedWorkspace] recycleURLs:fileURLs completionHandler:nil];
-}
-
 - (void)deleteURLsAtIndexes:(NSIndexSet *)indexSet 
moveToTrash:(NSInteger)moveToTrash{
     NSMutableArray *URLs = [NSMutableArray array];
     NSMutableArray *fileURLs = [NSMutableArray array];
@@ -1736,7 +1731,7 @@
         [[self document] userRemovedURL:aURL forPublication:publication];
     if ([fileURLs count]) {
         if (moveToTrash == BDSKMoveToTrashYes) {
-            [self trashFileURLs:fileURLs];
+            [[NSWorkspace sharedWorkspace] recycleURLs:fileURLs 
completionHandler:nil];
         } else if (moveToTrash == BDSKMoveToTrashAsk) {
             NSAlert *alert = [[NSAlert alloc] init];
             [alert setMessageText:NSLocalizedString(@"Move Files to Trash?", 
@"Message in alert dialog when deleting a file")];
@@ -1748,7 +1743,7 @@
                 if (alert && [[alert suppressionButton] state] == 
NSControlStateValueOn)
                     [[NSUserDefaults standardUserDefaults] setBool:NO 
forKey:BDSKAskToTrashFilesKey];
                 if (returnCode == NSAlertSecondButtonReturn)
-                    [self trashFileURLs:fileURLs];
+                    [[NSWorkspace sharedWorkspace] recycleURLs:fileURLs 
completionHandler:nil];
             }];
         }
     }

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



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to