diff options
author | Vincent Sanders <vince@kyllikki.org> | 2017-05-23 11:18:45 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2017-05-23 11:18:45 +0100 |
commit | d6c07925417eaea27c85996bc243f93e27b1bcd0 (patch) | |
tree | 7c4155f513a9d2a9dc91cfb0e5de9637995340af /frontends/cocoa/PSMTabBarControl/NSString_AITruncation.m | |
parent | 681586139fa83a53b1174ad93d764c5c92b900f3 (diff) | |
download | netsurf-d6c07925417eaea27c85996bc243f93e27b1bcd0.tar.gz netsurf-d6c07925417eaea27c85996bc243f93e27b1bcd0.tar.bz2 |
remove cocoa frontend
The cocoa frontend has been broken for a few years and we have no
maintainer. It was removed from the CI six months ago and has already
bitrotted so it cannot be compiled.
Diffstat (limited to 'frontends/cocoa/PSMTabBarControl/NSString_AITruncation.m')
-rw-r--r-- | frontends/cocoa/PSMTabBarControl/NSString_AITruncation.m | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/frontends/cocoa/PSMTabBarControl/NSString_AITruncation.m b/frontends/cocoa/PSMTabBarControl/NSString_AITruncation.m deleted file mode 100644 index 1a54502e5..000000000 --- a/frontends/cocoa/PSMTabBarControl/NSString_AITruncation.m +++ /dev/null @@ -1,32 +0,0 @@ -// -// NSString_AITruncation.m -// PSMTabBarControl -// -// Created by Evan Schoenberg on 7/14/07. -// From Adium, which is licensed under the GPL. Used in PSMTabBarControl with permission. -// The contents of this remain licensed under the GPL. -// - -#import "NSString_AITruncation.h" - -@implementation NSString (AITruncation) - -+ (id)ellipsis { - return [NSString stringWithUTF8String:"\xE2\x80\xA6"]; -} - -- (NSString *)stringWithEllipsisByTruncatingToLength:(NSUInteger)length { - NSString *returnString; - - if(length < [self length]) { - //Truncate and append the ellipsis - returnString = [[self substringToIndex:length - 1] stringByAppendingString:[NSString ellipsis]]; - } else { - //We don't need to truncate, so don't append an ellipsis - returnString = [[self copy] autorelease]; - } - - return returnString; -} - -@end |