Revision: 6940
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6940&view=rev
Author:   hofman
Date:     2010-12-06 19:03:57 +0000 (Mon, 06 Dec 2010)

Log Message:
-----------
remove now unused method

Modified Paths:
--------------
    trunk/SKBookmarkController.m

Modified: trunk/SKBookmarkController.m
===================================================================
--- trunk/SKBookmarkController.m        2010-12-06 18:42:36 UTC (rev 6939)
+++ trunk/SKBookmarkController.m        2010-12-06 19:03:57 UTC (rev 6940)
@@ -233,35 +233,6 @@
         [folder insertObject:bookmark inChildrenAtIndex:[folder 
countOfChildren]];
 }
 
-- (NSUInteger)addBookmarksForPaths:(NSArray *)paths basePath:(NSString 
*)basePath toFolder:(SKBookmark *)folder atIndex:(NSUInteger)anIndex {
-    NSFileManager *fm = [NSFileManager defaultManager];
-    NSDocumentController *dc = [NSDocumentController sharedDocumentController];
-    NSUInteger insertIndex = anIndex;
-    
-    for (NSString *file in paths) {
-        if ([[file lastPathComponent] hasPrefix:@"."] == NO) {
-            NSString *path = [basePath stringByAppendingPathComponent:file] ?: 
file;
-            NSString *fileType = [dc typeForContentsOfURL:[NSURL 
fileURLWithPath:path] error:NULL];
-            Class docClass;
-            SKBookmark *bookmark;
-            if ([fileType isEqualToString:SKFolderDocumentType]) {
-                if (bookmark = [[SKBookmark alloc] initFolderWithLabel:[fm 
displayNameAtPath:path]]) {
-                    [self addBookmarksForPaths:[fm 
contentsOfDirectoryAtPath:path error:NULL] basePath:path toFolder:bookmark 
atIndex:0];
-                    if ([bookmark countOfChildren])
-                        [folder insertObject:bookmark 
inChildrenAtIndex:insertIndex++];
-                    [bookmark release];
-                }
-            } else if (docClass = [dc documentClassForType:fileType]) {
-                if (bookmark = [[SKBookmark alloc] initWithPath:path 
pageIndex:([docClass isPDFDocument] ? 0 : NSNotFound) label:[fm 
displayNameAtPath:path]]) {
-                    [folder insertObject:bookmark 
inChildrenAtIndex:insertIndex++];
-                    [bookmark release];
-                }
-            }
-        }
-    }
-    return insertIndex - anIndex;
-}
-
 - (NSArray *)draggedBookmarks {
     return draggedBookmarks;
 }


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

------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to