Revision: 11890
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=11890&view=rev
Author:   amaxwell
Date:     2007-12-12 15:50:24 -0800 (Wed, 12 Dec 2007)

Log Message:
-----------
unused local vars, fix comment

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

Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m  2007-12-12 23:21:48 UTC (rev 11889)
+++ trunk/bibdesk/BDSKEditor.m  2007-12-12 23:50:24 UTC (rev 11890)
@@ -1878,7 +1878,6 @@
        NSString *newValue = [userInfo objectForKey:@"value"];
        BibItem *sender = (BibItem *)[notification object];
        NSString *crossref = [publication valueOfField:BDSKCrossrefString 
inherit:NO];
-       OFPreferenceWrapper *pw = [OFPreferenceWrapper sharedPreferenceWrapper];
        BOOL parentDidChange = (crossref != nil && 
                                                        ([crossref 
caseInsensitiveCompare:[sender citeKey]] == NSOrderedSame || 
                                                         [crossref 
caseInsensitiveCompare:[userInfo objectForKey:@"oldCiteKey"]] == 
NSOrderedSame));
@@ -2303,7 +2302,9 @@
 
        // Test a keyboard mask so that we can override all fields when 
dragging into the editor window (option)
        // create a crossref (cmd-option), or fill empty fields (no modifiers)
-       unsigned modifierFlags = [NSApp currentModifierFlags]; // use the 
Carbon function since [NSApp currentModifierFlags] won't work if we're not the 
front app
+    
+    // uses the Carbon function since [NSApp modifierFlags] won't work if 
we're not the front app
+       unsigned modifierFlags = [NSApp currentModifierFlags];
        
        // we always have sourceDragMask & NSDragOperationLink here for some 
reason, so test the mask manually
        if((modifierFlags & (NSAlternateKeyMask | NSCommandKeyMask)) == 
(NSAlternateKeyMask | NSCommandKeyMask)){
@@ -2311,7 +2312,6 @@
                // linking, try to set the crossref field
         NSString *crossref = [tempBI citeKey];
                NSString *message = nil;
-        NSString *oldValue = [[[publication valueOfField:BDSKCrossrefString] 
retain] autorelease];
                
                // first check if we don't create a Crossref chain
         int errorCode = [publication canSetCrossref:crossref 
andCiteKey:[publication citeKey]];


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

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to