diff --git a/Source/GSString.m b/Source/GSString.m index 7c9adf304..3e0c014a5 100644 --- a/Source/GSString.m +++ b/Source/GSString.m @@ -2811,6 +2811,15 @@ transmute(GSStr self, NSString *aString) setup(); } +- (NSUInteger) hash +{ + if (self->_flags.hash == 0) + { + self->_flags.hash = (*hashImp)((id)self, hashSel); + } + return self->_flags.hash; +} + - (id) initWithBytes: (const void*)chars length: (NSUInteger)length encoding: (NSStringEncoding)encoding @@ -3034,15 +3043,6 @@ transmute(GSStr self, NSString *aString) getCString_c((GSStr)self, buffer, maxLength, aRange, leftoverRange); } -- (NSUInteger) hash -{ - if (self->_flags.hash == 0) - { - self->_flags.hash = (*hashImp)((id)self, hashSel); - } - return self->_flags.hash; -} - - (NSInteger) intValue { return intValue_c((GSStr)self); @@ -3361,15 +3361,6 @@ agree, create a new GSCInlineString otherwise. getCString_u((GSStr)self, buffer, maxLength, aRange, leftoverRange); } -- (NSUInteger) hash -{ - if (self->_flags.hash == 0) - { - self->_flags.hash = (*hashImp)((id)self, hashSel); - } - return self->_flags.hash; -} - - (NSInteger) intValue { return intValue_u((GSStr)self); @@ -3874,15 +3865,6 @@ NSAssert(_flags.owned == 1 && _zone != 0, NSInternalInconsistencyException); } } -- (NSUInteger) hash -{ - if (self->_flags.hash == 0) - { - self->_flags.hash = (*hashImp)((id)self, hashSel); - } - return self->_flags.hash; -} - - (id) init { return [self initWithCapacity: 0];