Fix possible unused function warnings

This commit is contained in:
Andreas Linde 2014-01-19 21:29:02 +01:00
parent 018e873040
commit 66c84630ea

View File

@ -33,7 +33,7 @@ NSString * const kBITBackgroundStrokeColorAttributeName = @"BITBackgroundStrokeC
NSString * const kBITBackgroundLineWidthAttributeName = @"BITBackgroundLineWidth"; NSString * const kBITBackgroundLineWidthAttributeName = @"BITBackgroundLineWidth";
NSString * const kBITBackgroundCornerRadiusAttributeName = @"BITBackgroundCornerRadius"; NSString * const kBITBackgroundCornerRadiusAttributeName = @"BITBackgroundCornerRadius";
static inline CTTextAlignment CTTextAlignmentFromUITextAlignment(UITextAlignment alignment) { static inline __attribute__((unused)) CTTextAlignment CTTextAlignmentFromUITextAlignment(UITextAlignment alignment) {
switch (alignment) { switch (alignment) {
case UITextAlignmentLeft: return kCTLeftTextAlignment; case UITextAlignmentLeft: return kCTLeftTextAlignment;
case UITextAlignmentCenter: return kCTCenterTextAlignment; case UITextAlignmentCenter: return kCTCenterTextAlignment;
@ -42,7 +42,7 @@ static inline CTTextAlignment CTTextAlignmentFromUITextAlignment(UITextAlignment
} }
} }
static inline CTTextAlignment CTTextAlignmentFromNSTextAlignment(NSTextAlignment alignment) { static __attribute__((unused)) inline CTTextAlignment CTTextAlignmentFromNSTextAlignment(NSTextAlignment alignment) {
switch (alignment) { switch (alignment) {
case NSTextAlignmentLeft: return kCTLeftTextAlignment; case NSTextAlignmentLeft: return kCTLeftTextAlignment;
case NSTextAlignmentCenter: return kCTCenterTextAlignment; case NSTextAlignmentCenter: return kCTCenterTextAlignment;
@ -63,7 +63,7 @@ static inline CTLineBreakMode CTLineBreakModeFromUILineBreakMode(UILineBreakMode
} }
} }
static inline CTLineBreakMode CTLineBreakModeFromNSLineBreakMode(NSLineBreakMode lineBreakMode) { static inline __attribute__((unused)) CTLineBreakMode CTLineBreakModeFromNSLineBreakMode(NSLineBreakMode lineBreakMode) {
switch (lineBreakMode) { switch (lineBreakMode) {
case NSLineBreakByWordWrapping: return kCTLineBreakByWordWrapping; case NSLineBreakByWordWrapping: return kCTLineBreakByWordWrapping;
case NSLineBreakByCharWrapping: return kCTLineBreakByCharWrapping; case NSLineBreakByCharWrapping: return kCTLineBreakByCharWrapping;
@ -75,7 +75,7 @@ static inline CTLineBreakMode CTLineBreakModeFromNSLineBreakMode(NSLineBreakMode
} }
} }
static inline UILineBreakMode UILineBreakModeFromNSLineBreakMode(NSLineBreakMode lineBreakMode) { static inline __attribute__((unused)) UILineBreakMode UILineBreakModeFromNSLineBreakMode(NSLineBreakMode lineBreakMode) {
switch (lineBreakMode) { switch (lineBreakMode) {
case NSLineBreakByWordWrapping: return UILineBreakModeWordWrap; case NSLineBreakByWordWrapping: return UILineBreakModeWordWrap;
case NSLineBreakByCharWrapping: return UILineBreakModeCharacterWrap; case NSLineBreakByCharWrapping: return UILineBreakModeCharacterWrap;