@@ -270,20 +270,10 @@ return [self initWithUnsignedLong: (unsigned long)value]; return (id)[[OFNumber of_alloc] initWithSize: value]; } -- (instancetype)initWithSSize: (ssize_t)value -{ - if (value >= 0) - return [self initWithSize: value]; - if (value <= LONG_MIN) - return [self initWithLong: (long)value]; - - return (id)[[OFNumber of_alloc] initWithSSize: value]; -} - #ifdef __clang__ /* * This warning should probably not exist at all, as it prevents checking * whether one type fits into another in a portable way. */ @@ -491,15 +481,10 @@ + (instancetype)numberWithSize: (size_t)value { return [[[self alloc] initWithSize: value] autorelease]; } -+ (instancetype)numberWithSSize: (ssize_t)value -{ - return [[[self alloc] initWithSSize: value] autorelease]; -} - + (instancetype)numberWithPtrDiff: (ptrdiff_t)value { return [[[self alloc] initWithPtrDiff: value] autorelease]; } @@ -743,21 +728,10 @@ _value.unsigned_ = value; _type = OF_NUMBER_TYPE_UNSIGNED; _typeEncoding = @encode(size_t); - return self; -} - -- (instancetype)initWithSSize: (ssize_t)value -{ - self = [super init]; - - _value.signed_ = value; - _type = OF_NUMBER_TYPE_SIGNED; - _typeEncoding = @encode(ssize_t); - return self; } - (instancetype)initWithPtrDiff: (ptrdiff_t)value { @@ -1009,15 +983,10 @@ - (size_t)sizeValue { RETURN_AS(size_t) } -- (ssize_t)sSizeValue -{ - RETURN_AS(ssize_t) -} - - (ptrdiff_t)ptrDiffValue { RETURN_AS(ptrdiff_t) }