Skip to content

Commit b07e369

Browse files
committed
qa: remove dead code
Signed-off-by: Maximilian Bösing <[email protected]>
1 parent 14a1314 commit b07e369

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

src/Pattern/ObjectCache.php

-30
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,16 @@
44

55
use Laminas\Cache\Exception;
66
use Laminas\Cache\Storage\StorageInterface;
7-
use Laminas\Stdlib\ErrorHandler;
87
use Stringable;
98
use Throwable;
109

1110
use function array_shift;
1211
use function array_unshift;
13-
use function array_values;
1412
use function assert;
1513
use function func_get_args;
1614
use function in_array;
17-
use function md5;
1815
use function method_exists;
1916
use function property_exists;
20-
use function serialize;
2117
use function sprintf;
2218
use function strtolower;
2319

@@ -288,30 +284,4 @@ public function __invoke(): mixed
288284
{
289285
return $this->call('__invoke', func_get_args());
290286
}
291-
292-
private function generateArgumentsKey(array $args): string
293-
{
294-
if ($args === []) {
295-
return '';
296-
}
297-
298-
ErrorHandler::start();
299-
try {
300-
$serializedArgs = serialize(array_values($args));
301-
} catch (\Exception $e) {
302-
ErrorHandler::stop();
303-
throw new Exception\RuntimeException("Can't serialize arguments: see previous exception", 0, $e);
304-
}
305-
$error = ErrorHandler::stop();
306-
307-
if (! $serializedArgs) {
308-
throw new Exception\RuntimeException(
309-
sprintf('Cannot serialize arguments%s', $error ? ': ' . $error->getMessage() : ''),
310-
0,
311-
$error
312-
);
313-
}
314-
315-
return md5($serializedArgs);
316-
}
317287
}

0 commit comments

Comments
 (0)