Changeset 5340


Ignore:
Timestamp:
Mar 23, 2008, 6:24:18 PM (14 years ago)
Author:
livings124
Message:

remove unused code, add a warning

Location:
trunk/macosx
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/CTGradient/CTGradientAdditions.h

    r3800 r5340  
    2525#import "CTGradient.h"
    2626
    27 @interface CTGradient (ActionBarView)
    28 + (CTGradient *)actionNormalGradient;
    29 + (CTGradient *)actionPressedGradient;
    30 @end
    31 
    3227@interface CTGradient (ProgressBar)
    3328+ (CTGradient *)progressWhiteGradient;
  • trunk/macosx/CTGradient/CTGradientAdditions.m

    r3800 r5340  
    2525#import "CTGradientAdditions.h"
    2626
    27 @implementation CTGradient (ActionBar)
    28 
    29 + (CTGradient *)actionNormalGradient
    30 {
    31     CTGradient *newInstance = [[[self class] alloc] init];
    32 
    33     CTGradientElement color1;
    34     color1.red = color1.green = color1.blue  = 0.9;
    35     color1.alpha = 1.00;
    36     color1.position = 0;
    37 
    38     CTGradientElement color2;
    39     color2.red = color2.green = color2.blue  = 0.9;
    40     color2.alpha = 1.00;
    41     color2.position = 0.5;
    42 
    43     CTGradientElement color3;
    44     color3.red = color3.green = color3.blue  = 0.95;
    45     color3.alpha = 1.00;
    46     color3.position = 0.5;
    47 
    48     CTGradientElement color4;
    49     color4.red = color4.green = color4.blue  = 1.0;
    50     color4.alpha = 1.00;
    51     color4.position = 1;
    52 
    53     [newInstance addElement:&color1];
    54     [newInstance addElement:&color2];
    55     [newInstance addElement:&color3];
    56     [newInstance addElement:&color4];
    57 
    58     return [newInstance autorelease];
    59 }
    60 
    61 + (CTGradient *)actionPressedGradient
    62 {
    63     CTGradient *newInstance = [[[self class] alloc] init];
    64 
    65     CTGradientElement color1;
    66     color1.red = color1.green = color1.blue  = 0.80;
    67     color1.alpha = 1.00;
    68     color1.position = 0;
    69 
    70     CTGradientElement color2;
    71     color2.red = color2.green = color2.blue  = 0.64;
    72     color2.alpha = 1.00;
    73     color2.position = 11.5/23;
    74 
    75     CTGradientElement color3;
    76     color3.red = color3.green = color3.blue  = 0.80;
    77     color3.alpha = 1.00;
    78     color3.position = 11.5/23;
    79 
    80     CTGradientElement color4;
    81     color4.red = color4.green = color4.blue  = 0.77;
    82     color4.alpha = 1.00;
    83     color4.position = 1;
    84 
    85     [newInstance addElement:&color1];
    86     [newInstance addElement:&color2];
    87     [newInstance addElement:&color3];
    88     [newInstance addElement:&color4];
    89 
    90     return [newInstance autorelease];
    91 }
    92 
    93 @end
    94 
    9527@implementation CTGradient (ProgressBar)
    9628
  • trunk/macosx/FileOutlineView.m

    r4665 r5340  
    2323 *****************************************************************************/
    2424
     25#warning treat hovering the same as in the table?
     26
    2527#import "FileOutlineView.h"
    2628#import "FileNameCell.h"
  • trunk/macosx/MenuLabel.h

    r5338 r5340  
    2828
    2929@interface MenuLabel : NSTextField
    30 {
    31 }
     30
    3231@end
  • trunk/macosx/Torrent.m

    r5339 r5340  
    6868@implementation Torrent
    6969
    70 
    7170- (id) initWithPath: (NSString *) path location: (NSString *) location deleteTorrentFile: (torrentFileState) torrentDelete
    7271        lib: (tr_handle *) lib
Note: See TracChangeset for help on using the changeset viewer.