run-tests: removed unused code (#16675)

This commit is contained in:
Markus Staab 2024-11-02 11:39:40 +01:00 committed by GitHub
parent cda67fb544
commit cf5ded9cc5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2866,19 +2866,6 @@ function expectf_to_regex(?string $wanted): string
'%0' => '\x00', '%0' => '\x00',
]); ]);
} }
/**
* @return bool|int
*/
function comp_line(string $l1, string $l2, bool $is_reg)
{
if ($is_reg) {
return preg_match('/^' . $l1 . '$/s', $l2);
}
return !strcmp($l1, $l2);
}
/** /**
* Map "Zend OPcache" to "opcache" and convert all ext names to lowercase. * Map "Zend OPcache" to "opcache" and convert all ext names to lowercase.
*/ */