I'm developing a new question type that extends the calculated question type.
I noticed that two functions used by the calculated question type are exactly the same : the get_formula_errors method of class qtype_calculated_variable_substituter (in question.php) and the qtype_calculated_find_formula_errors function that is at the end of questiontype.php.
Using the Find usage function of NetBeans, I found that the get_formula_errors function is not used anywhere in the code, it is only declared. Does this mean that it has been replaced by qtype_calculated_find_formula_errors and not deleted yet ?
Or is the opposite, get_formula_errors is supposed to replace qtype_calculated_find_formula_errors eventually but it hasn't been done yet ?
I would like to know because I need to modify this function a bit for my question type.