mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-05 14:02:48 +00:00
Fix possible unused function warnings
This commit is contained in:
parent
018e873040
commit
66c84630ea
@ -33,7 +33,7 @@ NSString * const kBITBackgroundStrokeColorAttributeName = @"BITBackgroundStrokeC
|
||||
NSString * const kBITBackgroundLineWidthAttributeName = @"BITBackgroundLineWidth";
|
||||
NSString * const kBITBackgroundCornerRadiusAttributeName = @"BITBackgroundCornerRadius";
|
||||
|
||||
static inline CTTextAlignment CTTextAlignmentFromUITextAlignment(UITextAlignment alignment) {
|
||||
static inline __attribute__((unused)) CTTextAlignment CTTextAlignmentFromUITextAlignment(UITextAlignment alignment) {
|
||||
switch (alignment) {
|
||||
case UITextAlignmentLeft: return kCTLeftTextAlignment;
|
||||
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) {
|
||||
case NSTextAlignmentLeft: return kCTLeftTextAlignment;
|
||||
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) {
|
||||
case NSLineBreakByWordWrapping: return kCTLineBreakByWordWrapping;
|
||||
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) {
|
||||
case NSLineBreakByWordWrapping: return UILineBreakModeWordWrap;
|
||||
case NSLineBreakByCharWrapping: return UILineBreakModeCharacterWrap;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user