Revision: 29455
http://sourceforge.net/p/bibdesk/svn/29455
Author: hofman
Date: 2025-08-24 15:49:27 +0000 (Sun, 24 Aug 2025)
Log Message:
-----------
remove unused action methods
Modified Paths:
--------------
trunk/bibdesk/BDSKTextImportController.h
trunk/bibdesk/BDSKTextImportController.m
Modified: trunk/bibdesk/BDSKTextImportController.h
===================================================================
--- trunk/bibdesk/BDSKTextImportController.h 2025-08-24 15:27:57 UTC (rev
29454)
+++ trunk/bibdesk/BDSKTextImportController.h 2025-08-24 15:49:27 UTC (rev
29455)
@@ -153,8 +153,6 @@
- (void)addBookmark:(nullable id)sender;
- (void)copyLocationAsRemoteUrl:(nullable id)sender;
-- (void)copyLinkedLocationAsRemoteUrl:(nullable id)sender;
-- (void)downloadLinkedFileAsLocalUrl:(nullable id)sender;
@end
Modified: trunk/bibdesk/BDSKTextImportController.m
===================================================================
--- trunk/bibdesk/BDSKTextImportController.m 2025-08-24 15:27:57 UTC (rev
29454)
+++ trunk/bibdesk/BDSKTextImportController.m 2025-08-24 15:49:27 UTC (rev
29455)
@@ -487,34 +487,6 @@
}
}
-- (void)copyLinkedLocationAsRemoteUrl:(id)sender{
- NSURL *aURL = (NSURL *)[sender representedObject];
-
- if (aURL) {
- if ([[NSUserDefaults standardUserDefaults]
boolForKey:BDSKUseLocalUrlAndUrlKey])
- [[self publication] setField:[aURL isFileURL] ? BDSKLocalUrlString
: BDSKUrlString toURLValue:aURL];
- else
- [[self publication] addFileForURL:aURL autoFile:YES
runScriptHook:NO];
- [[self undoManager] setActionName:NSLocalizedString(@"Edit
Publication", @"Undo action name")];
- }
-}
-
-- (void)downloadLinkedFileAsLocalUrl:(id)sender{
- NSURL *linkURL = (NSURL *)[sender representedObject];
- if (isDownloading)
- return;
- if (linkURL) {
- download = [[BDSKDownloader sharedDownloader]
startFileDownloadWithRequest:[NSURLRequest requestWithURL:linkURL]
delegate:self];
- [self setDownloading:YES];
- }
- if (download == nil) {
- NSAlert *alert = [[NSAlert alloc] init];
- [alert setMessageText:NSLocalizedString(@"Invalid or Unsupported URL",
@"Message in alert dialog when unable to download file for Local-Url")];
- [alert setInformativeText:NSLocalizedString(@"The URL to download is
either invalid or unsupported.", @"Informative text in alert dialog")];
- [alert beginSheetModalForWindow:[self window] completionHandler:NULL];
- }
-}
-
- (void)performCustomMenuAction:(id)sender {
NSMenuItem *origItem = [sender representedObject];
@@ -1193,7 +1165,7 @@
if (useURLFields)
title = NSLocalizedString(@"Copy Page Location to Url Field", @"Menu
item title");
else
- title = NSLocalizedString(@"Copy Page Location to Linked URL", @"Menu
item title");
+ title = NSLocalizedString(@"Copy Page Location To Linked URL", @"Menu
item title");
item = [[NSMenuItem alloc] initWithTitle:title
action:@selector(copyLocationAsRemoteUrl:) keyEquivalent:@""];
[item setTarget:self];
[item setIdentifier:@"BDSKMenuItemIdentifierCopyLocationToUrl"];
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