Revision: 22017
          http://sourceforge.net/p/bibdesk/svn/22017
Author:   hofman
Date:     2018-02-23 15:56:27 +0000 (Fri, 23 Feb 2018)
Log Message:
-----------
remove unused variables and localized string

Modified Paths:
--------------
    trunk/bibdesk/BDSKCOinSParser.m
    trunk/bibdesk/BDSKJSTORWebParser.m
    trunk/bibdesk/BDSKLinkedBibTeXParser.m
    trunk/bibdesk/BDSKMASParser.m
    trunk/bibdesk/BDSKMathSciNetParser.m
    trunk/bibdesk/BDSKNumdamParser.m
    trunk/bibdesk/BDSKProjectEuclidParser.m
    trunk/bibdesk/BDSKZentralblattParser.m
    trunk/bibdesk/English.lproj/Localizable.strings
    trunk/bibdesk/French.lproj/Localizable.strings
    trunk/bibdesk/German.lproj/Localizable.strings

Modified: trunk/bibdesk/BDSKCOinSParser.m
===================================================================
--- trunk/bibdesk/BDSKCOinSParser.m     2018-02-23 15:44:34 UTC (rev 22016)
+++ trunk/bibdesk/BDSKCOinSParser.m     2018-02-23 15:56:27 UTC (rev 22017)
@@ -312,7 +312,6 @@
 // Process the document. 
 - (NSArray *)itemsReturningError:(NSError **)outError {
 
-       NSError *error;
     NSArray *nodes = [[[self xmlDocument] rootElement] 
nodesForXPath:@".//span[@class='Z3988']" error:outError];
     
     NSMutableArray *items = [NSMutableArray arrayWithCapacity:[nodes count]];

Modified: trunk/bibdesk/BDSKJSTORWebParser.m
===================================================================
--- trunk/bibdesk/BDSKJSTORWebParser.m  2018-02-23 15:44:34 UTC (rev 22016)
+++ trunk/bibdesk/BDSKJSTORWebParser.m  2018-02-23 15:56:27 UTC (rev 22017)
@@ -60,8 +60,6 @@
 
 - (NSArray *)itemsReturningError:(NSError **)outError {
     
-       NSStringEncoding encoding = NSASCIIStringEncoding;
-       
        // extract JSTOR article number
        AGRegex *jstorRegex = [AGRegex regexWithPattern:@"^/stable/([0-9]+)"];
        AGRegexMatch *jstorMatch = [jstorRegex findInString:[[self URL] path]];
@@ -72,7 +70,7 @@
         NSURL *url = [self URL];
         
         // download BibTeX data
-        NSURL *bibtexURL = [NSURL URLWithString:[@"/citation/text/%@" 
stringByAppendingString:jstorNumber] relativeToURL:url];
+        NSURL *bibtexURL = [NSURL URLWithString:[@"/citation/text/" 
stringByAppendingString:jstorNumber] relativeToURL:url];
         
         NSURLRequest *request = [NSURLRequest requestWithURL:bibtexURL 
cachePolicy:NSURLRequestReturnCacheDataElseLoad timeoutInterval:60.0];
         

Modified: trunk/bibdesk/BDSKLinkedBibTeXParser.m
===================================================================
--- trunk/bibdesk/BDSKLinkedBibTeXParser.m      2018-02-23 15:44:34 UTC (rev 
22016)
+++ trunk/bibdesk/BDSKLinkedBibTeXParser.m      2018-02-23 15:56:27 UTC (rev 
22017)
@@ -70,7 +70,6 @@
 - (NSArray *)itemsReturningError:(NSError **)outError {
     
     NSString *bibtexNodePath = [[self class] linkedBibTeXNodeXPath];
-    NSError *error = nil;
     NSArray *bibtexNodes = [[[self xmlDocument] rootElement] 
nodesForXPath:bibtexNodePath error:outError];
     NSArray *items = nil;
     

Modified: trunk/bibdesk/BDSKMASParser.m
===================================================================
--- trunk/bibdesk/BDSKMASParser.m       2018-02-23 15:44:34 UTC (rev 22016)
+++ trunk/bibdesk/BDSKMASParser.m       2018-02-23 15:56:27 UTC (rev 22017)
@@ -100,9 +100,7 @@
 }
 
 - (NSArray *)itemsFromDownload:(BDSKCitationDownload *)download error:(NSError 
**)outError {
-    NSError *error = nil;
     NSString *bibtexString = [download string];
-    NSArray *bibtexItems = nil;
     NSArray *items = nil;
 
     if (bibtexString)

Modified: trunk/bibdesk/BDSKMathSciNetParser.m
===================================================================
--- trunk/bibdesk/BDSKMathSciNetParser.m        2018-02-23 15:44:34 UTC (rev 
22016)
+++ trunk/bibdesk/BDSKMathSciNetParser.m        2018-02-23 15:56:27 UTC (rev 
22017)
@@ -90,7 +90,6 @@
 
 - (NSArray *)itemsFromDownload:(BDSKCitationDownload *)download error:(NSError 
**)outError {
     NSArray *results = nil;
-    NSArray *bibtexItems = nil;
     NSString *bibTeXString = [download string];
     
     if (bibTeXString)
@@ -102,7 +101,6 @@
 // Turns an array of MR ID numbers into an array of NSURLRequest objects to 
download the bibTeX citations.
 // The referrer: URL argument is used to send requests to the same mirror that 
was used originally.
 + (NSArray *)bibTeXRequestsForMRIDs:(NSArray *)IDs referrer:(NSURL *)URL 
error:(NSError **)outError {
-    NSError * error;
     
     // Determine the server name to use.
     // If the referring URL's server name contains 'ams', assume we were using 
a mirror server before and continue using that.

Modified: trunk/bibdesk/BDSKNumdamParser.m
===================================================================
--- trunk/bibdesk/BDSKNumdamParser.m    2018-02-23 15:44:34 UTC (rev 22016)
+++ trunk/bibdesk/BDSKNumdamParser.m    2018-02-23 15:56:27 UTC (rev 22017)
@@ -139,7 +139,6 @@
 
 - (NSArray *)itemsFromDownload:(BDSKCitationDownload *)download error:(NSError 
**)outError {
     NSArray *results = nil;
-    NSArray *bibtexItems = nil;
     NSString *bibTeXString = [download string];
     NSDictionary *contextInfo = [download contextInfo];
     Class parserClass = (Class)[contextInfo objectForKey:@"parserClass"];

Modified: trunk/bibdesk/BDSKProjectEuclidParser.m
===================================================================
--- trunk/bibdesk/BDSKProjectEuclidParser.m     2018-02-23 15:44:34 UTC (rev 
22016)
+++ trunk/bibdesk/BDSKProjectEuclidParser.m     2018-02-23 15:56:27 UTC (rev 
22017)
@@ -131,7 +131,6 @@
 - (NSArray *)itemsFromDownload:(BDSKCitationDownload *)download error:(NSError 
**)outError {
     NSArray *results = nil;
     NSError *error = nil;
-    NSArray *bibtexItems = nil;
     NSString *bibTeXString = [download string];
     NSDictionary *contextInfo = [download contextInfo];
     Class parserClass = (Class)[contextInfo objectForKey:@"parserClass"];

Modified: trunk/bibdesk/BDSKZentralblattParser.m
===================================================================
--- trunk/bibdesk/BDSKZentralblattParser.m      2018-02-23 15:44:34 UTC (rev 
22016)
+++ trunk/bibdesk/BDSKZentralblattParser.m      2018-02-23 15:56:27 UTC (rev 
22017)
@@ -63,8 +63,6 @@
 // Return the resulting BibItems.
 - (NSArray *)itemsReturningError:(NSError **)outError {
 
-    NSError *error = nil;
-    
        AGRegex *ZMathRegexp = [AGRegex regexWithPattern:@"(Zbl|JFM) 
(pre)?([0-9.]*)" options:AGRegexMultiline];
        NSArray * regexpResults = [ZMathRegexp findAllInString:[[self 
xmlDocument] XMLString]];
        
@@ -101,7 +99,6 @@
 
 // Turns an array of Zentralblatt Math IDs into an array of NSURLRequest 
objects for bibtex data.
 + (NSArray *)bibTeXRequestsForZMathIDs:(NSArray *)IDs referrer:(NSURL 
*)referrer error:(NSError **)outError {
-    NSError * error;
     
     //    Determine the server name to use.
     // If the referring URL's path begins with '/zmath', assume we are using a 
Zentralblatt mirror server before and continue using that.

Modified: trunk/bibdesk/English.lproj/Localizable.strings
===================================================================
(Binary files differ)

Modified: trunk/bibdesk/French.lproj/Localizable.strings
===================================================================
(Binary files differ)

Modified: trunk/bibdesk/German.lproj/Localizable.strings
===================================================================
(Binary files differ)

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


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to