Revision: 18355
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18355&view=rev
Author:   hofman
Date:     2012-01-03 12:23:31 +0000 (Tue, 03 Jan 2012)
Log Message:
-----------
remove unused local variables

Modified Paths:
--------------
    trunk/bibdesk/BDSKMainTableView.m
    trunk/bibdesk/BDSKTextWithIconCell.m

Modified: trunk/bibdesk/BDSKMainTableView.m
===================================================================
--- trunk/bibdesk/BDSKMainTableView.m   2012-01-03 07:35:33 UTC (rev 18354)
+++ trunk/bibdesk/BDSKMainTableView.m   2012-01-03 12:23:31 UTC (rev 18355)
@@ -789,11 +789,8 @@
 
 - (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView {
     NSColor *color = [self objectValue];
-    if ([color respondsToSelector:@selector(drawSwatchInRect:)]) {
-        NSRect rect, ignored;
-        rect = BDSKShrinkRect(cellFrame, 1.0, [controlView isFlipped] ? 
NSMaxYEdge : NSMinYEdge);
-        [color drawSwatchInRect:rect];
-    }
+    if ([color respondsToSelector:@selector(drawSwatchInRect:)])
+        [color drawSwatchInRect:BDSKShrinkRect(cellFrame, 1.0, [controlView 
isFlipped] ? NSMaxYEdge : NSMinYEdge)];
 }
 
 @end

Modified: trunk/bibdesk/BDSKTextWithIconCell.m
===================================================================
--- trunk/bibdesk/BDSKTextWithIconCell.m        2012-01-03 07:35:33 UTC (rev 
18354)
+++ trunk/bibdesk/BDSKTextWithIconCell.m        2012-01-03 12:23:31 UTC (rev 
18355)
@@ -125,7 +125,6 @@
 }
 
 - (NSRect)textRectForBounds:(NSRect)aRect {
-    NSRect textRect = aRect;
     CGFloat border;
     
     if ([self isBordered])

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


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to