How to hide a barline?

I’ve provide an alternative method in the other thread that you asked the same question in.