removed (apparently) useless +version from classes, due to problems with the ObjC2 runtime on OpenBSD (thanks to Sebastian Reitenbach)
parent
1f586a4416
commit
bde8f662a3
|
@ -67,15 +67,7 @@ static NSMutableArray *monthLabelKeys = nil;
|
||||||
static NSMutableArray *abbrMonthLabelKeys = nil;
|
static NSMutableArray *abbrMonthLabelKeys = nil;
|
||||||
static SoProduct *commonProduct = nil;
|
static SoProduct *commonProduct = nil;
|
||||||
|
|
||||||
+ (int)version {
|
|
||||||
return [super version] + 0 /* v2 */;
|
|
||||||
}
|
|
||||||
|
|
||||||
+ (void)initialize {
|
+ (void)initialize {
|
||||||
NSAssert2([super version] == 2,
|
|
||||||
@"invalid superclass (%@) version %i !",
|
|
||||||
NSStringFromClass([self superclass]), [super version]);
|
|
||||||
|
|
||||||
if (dayLabelKeys == nil) {
|
if (dayLabelKeys == nil) {
|
||||||
dayLabelKeys = [[NSMutableArray alloc] initWithCapacity:7];
|
dayLabelKeys = [[NSMutableArray alloc] initWithCapacity:7];
|
||||||
[dayLabelKeys addObject:@"Sunday"];
|
[dayLabelKeys addObject:@"Sunday"];
|
||||||
|
|
Loading…
Reference in New Issue