- (void)setMaximalHistoryLength: (size_t)len
{
if (len < 1)
- @throw [OFInvalidArgumentException
- exceptionWithClass: [self class]
- selector: _cmd];
+ @throw [OFInvalidArgumentException exception];
OFMutableArray *old = _history, *new;
int tocopy = len < [old count] ? len : [old count];