Removed unnecessary double-check for cache length value

Cache length check upon calling _prune() is unnecessary as that method performs the same check.