Revision: 7172
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7172&view=rev
Author:   hofman
Date:     2011-03-19 18:54:54 +0000 (Sat, 19 Mar 2011)

Log Message:
-----------
remove unused delegate methods

Modified Paths:
--------------
    trunk/SKDownload.h
    trunk/SKDownload.m

Modified: trunk/SKDownload.h
===================================================================
--- trunk/SKDownload.h  2011-03-19 11:06:18 UTC (rev 7171)
+++ trunk/SKDownload.h  2011-03-19 18:54:54 UTC (rev 7172)
@@ -99,9 +99,6 @@
 @protocol SKDownloadDelegate <NSObject>
 @optional
 
-- (void)downloadDidStart:(SKDownload *)download;
-- (void)downloadDidBeginDownloading:(SKDownload *)download;
-- (void)downloadDidUpdate:(SKDownload *)download;
 - (void)downloadDidEnd:(SKDownload *)download;
 
 @end

Modified: trunk/SKDownload.m
===================================================================
--- trunk/SKDownload.m  2011-03-19 11:06:18 UTC (rev 7171)
+++ trunk/SKDownload.m  2011-03-19 18:54:54 UTC (rev 7172)
@@ -237,8 +237,6 @@
     URLDownload = [[NSURLDownload alloc] initWithRequest:[NSURLRequest 
requestWithURL:URL] delegate:self];
     [URLDownload setDeletesFileUponFailure:NO];
     [self setStatus:SKDownloadStatusStarting];
-    if ([delegate respondsToSelector:@selector(downloadDidStart:)])
-        [delegate downloadDidStart:self];
 }
 
 - (void)cancel {
@@ -264,8 +262,6 @@
             URLDownload = [[NSURLDownload alloc] initWithResumeData:resumeData 
delegate:self path:[self filePath]];
             [URLDownload setDeletesFileUponFailure:NO];
             [self setStatus:SKDownloadStatusDownloading];
-            if ([delegate respondsToSelector:@selector(downloadDidStart:)])
-                [delegate downloadDidStart:self];
             
         } else {
             
@@ -301,8 +297,6 @@
 
 - (void)downloadDidBegin:(NSURLDownload *)download{
     [self setStatus:SKDownloadStatusDownloading];
-    if ([delegate respondsToSelector:@selector(downloadDidBeginDownloading:)])
-        [delegate downloadDidBeginDownloading:self];
 }
 
 - (void)download:(NSURLDownload *)download didReceiveResponse:(NSURLResponse 
*)response {
@@ -315,9 +309,6 @@
             [self setFileIcon:[[NSWorkspace sharedWorkspace] 
iconForFileType:type]];
         CFRelease(UTI);
     }
-    
-    if ([delegate respondsToSelector:@selector(downloadDidUpdate:)])
-        [delegate downloadDidUpdate:self];
 }
 
 - (void)download:(NSURLDownload *)download 
decideDestinationWithSuggestedFilename:(NSString *)filename {
@@ -328,16 +319,12 @@
 
 - (void)download:(NSURLDownload *)download didCreateDestination:(NSString 
*)path {
     [self setFilePath:path];
-    if ([delegate respondsToSelector:@selector(downloadDidUpdate:)])
-        [delegate downloadDidUpdate:self];
 }
 
 - (void)download:(NSURLDownload *)download 
didReceiveDataOfLength:(NSUInteger)length {
     if (expectedContentLength > 0) {
         receivedContentLength += length;
                [progressIndicator 
setDoubleValue:(double)receivedContentLength];
-        if ([delegate respondsToSelector:@selector(downloadDidUpdate:)])
-            [delegate downloadDidUpdate:self];
     }
 }
 


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

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to