Remove unused add_scalar function.