Changeset 5941


Ignore:
Timestamp:
May 27, 2008, 4:26:09 AM (14 years ago)
Author:
livings124
Message:

dead code removal

Location:
trunk/macosx/CTGradient
Files:
2 edited

Legend:

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

    r5428 r5941  
    3636+ (CTGradient *)progressRedGradient;
    3737+ (CTGradient *)progressYellowGradient;
    38 + (CTGradient *)progressTransparentGradient;
    3938@end
  • trunk/macosx/CTGradient/CTGradientAdditions.m

    r5428 r5941  
    399399}
    400400
    401 + (CTGradient *)progressTransparentGradient
    402 {
    403     CTGradient *newInstance = [[[self class] alloc] init];
    404    
    405     CTGradientElement color1;
    406     color1.red = color1.green = color1.blue = 1.0;
    407     color1.alpha = 0.65;
    408     color1.position = 0;
    409    
    410     CTGradientElement color2;
    411     color2.red = color2.green = color2.blue = 1.0;
    412     color2.alpha = 0.05;
    413     color2.position = 0.5;
    414    
    415     CTGradientElement color3;
    416     color3.red = color3.green = color3.blue = 1.0;
    417     color3.alpha = 0.4;
    418     color3.position = 0.5;
    419    
    420     CTGradientElement color4;
    421     color4.red = color4.green = color4.blue = 1.0;
    422     color4.alpha = 0.4;
    423     color4.position = 1;
    424    
    425     [newInstance addElement:&color1];
    426     [newInstance addElement:&color2];
    427     [newInstance addElement:&color3];
    428     [newInstance addElement:&color4];
    429    
    430     return [newInstance autorelease];
    431 }
    432 
    433401@end
Note: See TracChangeset for help on using the changeset viewer.