Skip to content

Commit 3456a02

Browse files
committed
remove method
1 parent 6bf0301 commit 3456a02

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/Context/FeatureContext.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -416,15 +416,6 @@ public static function get_bin_path(): ?string {
416416
return $bin_path;
417417
}
418418

419-
/**
420-
* Whether the current OS is Windows.
421-
*
422-
* @return bool
423-
*/
424-
private static function is_windows(): bool {
425-
return strtoupper( substr( PHP_OS, 0, 3 ) ) === 'WIN';
426-
}
427-
428419
/**
429420
* Get the environment variables required for launched `wp` processes.
430421
*
@@ -665,7 +656,7 @@ public static function prepare( BeforeSuiteScope $scope ): void {
665656
self::$mysql_binary = Utils\get_mysql_binary_path();
666657

667658
// TODO: Improve Windows support upstream in Utils\get_mysql_binary_path().
668-
if ( self::is_windows() && ! self::$mysql_binary ) {
659+
if ( Utils\is_windows() && ! self::$mysql_binary ) {
669660
self::$mysql_binary = 'mysql.exe';
670661
}
671662

0 commit comments

Comments
 (0)