Remove unusued 'total' functions.

Should fix the 'unused function' warnings.