MDL-49772 behat: Removed optimization as it's not required

This api is called very few times in behat
initilisation process, so such optimization
is an over engineer. Hence removing it.
This commit is contained in:
Rajesh Taneja 2015-05-27 11:20:48 +08:00
parent 91a96d402a
commit b7861ddab3

View File

@ -273,12 +273,6 @@ class behat_config_manager {
* @return int
*/
public final static function get_parallel_test_runs($runprocess = 0) {
global $CFG;
// Optimise reading this information from file.
if (!empty($CFG->behatparallelprocesses)) {
return $CFG->behatparallelprocesses;
}
$parallelrun = 0;
// Get parallel run info from first file and last file.
@ -289,8 +283,6 @@ class behat_config_manager {
}
}
$CFG->behatparallelprocesses = $parallelrun;
return $parallelrun;
}