Skip to content

Commit

Permalink
ENH Remove code that had been retained for backwards compatibility
Browse files Browse the repository at this point in the history
The only way that code would be triggered is if someone is calling this
method _directly_ rather than via a behat feature, which is extremely
unlikely.
  • Loading branch information
GuySartorelli committed Jan 9, 2025
1 parent 8e55a5e commit 990042f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Context/BasicContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -1332,11 +1332,6 @@ protected function logException(Exception $exception)
*/
public function iShouldSeeTheElement($not, $cssSelector = '')
{
// backwards compatibility for when function signature was just ($cssSelector)
if (!in_array($not, ['', ' not'])) {
$not = '';
$cssSelector = $not;
}
$sel = str_replace('"', '\\"', $cssSelector ?? '');
$js = <<<JS
return document.querySelector("$sel");
Expand Down

0 comments on commit 990042f

Please sign in to comment.