Revision: 27643
http://sourceforge.net/p/bibdesk/svn/27643
Author: hofman
Date: 2022-06-17 22:44:58 +0000 (Fri, 17 Jun 2022)
Log Message:
-----------
no need for separate failed property
Modified Paths:
--------------
trunk/bibdesk/BDSKAsynchronousWebParser.h
trunk/bibdesk/BDSKAsynchronousWebParser.m
Modified: trunk/bibdesk/BDSKAsynchronousWebParser.h
===================================================================
--- trunk/bibdesk/BDSKAsynchronousWebParser.h 2022-06-17 22:39:35 UTC (rev
27642)
+++ trunk/bibdesk/BDSKAsynchronousWebParser.h 2022-06-17 22:44:58 UTC (rev
27643)
@@ -94,7 +94,6 @@
@property (nonatomic, readonly) NSData *data;
@property (nonatomic, readonly) NSString *string;
@property (nonatomic, readonly) NSError *error;
-@property (nonatomic, readonly) BOOL failed;
@property (nonatomic, retain) id contextInfo;
- (void)start;
Modified: trunk/bibdesk/BDSKAsynchronousWebParser.m
===================================================================
--- trunk/bibdesk/BDSKAsynchronousWebParser.m 2022-06-17 22:39:35 UTC (rev
27642)
+++ trunk/bibdesk/BDSKAsynchronousWebParser.m 2022-06-17 22:44:58 UTC (rev
27643)
@@ -112,7 +112,7 @@
NSArray *items = nil;
NSError *error = [download error];
- if ([download failed] == NO)
+ if (error == nil)
items = [self itemsFromDownload:download error:&error];
if ([items count] == 0) {
@@ -178,7 +178,7 @@
@implementation BDSKCitationDownload
@synthesize error, contextInfo;
-@dynamic URL, data, string, failed;
+@dynamic URL, data, string;
- (void)dealloc {
delegate = nil;
@@ -208,7 +208,7 @@
}
- (NSString *)string {
- if ([self failed])
+ if (error)
return nil;
NSString *string = nil;
@@ -228,10 +228,6 @@
return string;
}
-- (BOOL)failed {
- return error != nil;
-}
-
- (void)start {
download = [[[BDSKDownloader sharedDownloader]
startDataDownloadWithRequest:request delegate:self] retain];
}
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