Remove obsolete painting function.