Skip to content

Commit 5ccc287

Browse files
committed
Remove unused params from launch_self
Signed-off-by: Kirtan Gajjar <[email protected]>
1 parent f33c321 commit 5ccc287

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

php/class-ee.php

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
use \EE\ExitException;
4-
use \EE\Dispatcher;
5-
use \EE\FileCache;
6-
use \EE\Process;
7-
use \EE\Utils;
3+
use EE\Dispatcher;
4+
use EE\ExitException;
5+
use EE\FileCache;
6+
use EE\Process;
7+
use EE\Utils;
88
use Mustangostang\Spyc;
99

1010
/**
@@ -919,20 +919,6 @@ public static function exec( $command, $echo_stdout = false, $echo_stderr = fals
919919
* @return int|ProcessRun The command exit status, or a ProcessRun instance
920920
*/
921921
public static function launch_self( $command, $args = array(), $assoc_args = array(), $exit_on_error = true, $return_detailed = false, $runtime_args = array() ) {
922-
$reused_runtime_args = array(
923-
'path',
924-
'url',
925-
'user',
926-
);
927-
928-
foreach ( $reused_runtime_args as $key ) {
929-
if ( isset( $runtime_args[ $key ] ) ) {
930-
$assoc_args[ $key ] = $runtime_args[ $key ];
931-
} elseif ( $value = self::get_runner()->config[ $key ] ) {
932-
$assoc_args[ $key ] = $value;
933-
}
934-
}
935-
936922
$php_bin = escapeshellarg( Utils\get_php_binary() );
937923

938924
$script_path = $GLOBALS['argv'][0];

0 commit comments

Comments
 (0)