Remove reference to buildLineWidget

It was still being called for showIfHidden widgets, even though it no longer exists.

Closes #1225