MDL-46148 qtype_calculated: Remove unused function.