Revision: 22873
          http://sourceforge.net/p/bibdesk/svn/22873
Author:   hofman
Date:     2018-10-26 22:12:01 +0000 (Fri, 26 Oct 2018)
Log Message:
-----------
no need for separate initializer with path

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

Modified: trunk/bibdesk/BDSKLinkedFile.m
===================================================================
--- trunk/bibdesk/BDSKLinkedFile.m      2018-10-26 16:38:25 UTC (rev 22872)
+++ trunk/bibdesk/BDSKLinkedFile.m      2018-10-26 22:12:01 UTC (rev 22873)
@@ -79,8 +79,6 @@
     id delegate;
 }
 
-- (id)initWithPath:(NSString *)aPath delegate:(id)aDelegate;
-
 - (void)updateFileRef;
 
 - (NSData *)aliasDataRelativeToPath:(NSString *)newBasePath;
@@ -354,8 +352,13 @@
     return [self initWithAliasData:aliasData relativePath:relPath 
delegate:aDelegate];
 }
 
-- (id)initWithPath:(NSString *)aPath 
delegate:(id<BDSKLinkedFileDelegate>)aDelegate;
+
+- (id)initWithURL:(NSURL *)aURL delegate:(id<BDSKLinkedFileDelegate>)aDelegate;
 {
+    BDSKASSERT([aURL isFileURL]);
+    
+    NSString *aPath = [aURL path];
+    
     BDSKASSERT(nil != aPath);
     BDSKASSERT(nil == aDelegate || [aDelegate 
respondsToSelector:@selector(basePathForLinkedFile:)]);
     
@@ -377,13 +380,6 @@
     return self;
 }
 
-- (id)initWithURL:(NSURL *)aURL delegate:(id<BDSKLinkedFileDelegate>)aDelegate;
-{
-    BDSKASSERT([aURL isFileURL]);
-    
-    return [self initWithPath:[aURL path] delegate:aDelegate];
-}
-
 - (id)initWithURLString:(NSString *)aString;
 {
     BDSKASSERT_NOT_REACHED("Attempt to initialize BDSKLinkedAliasFile with a 
URL string");

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



_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to