This is logic that shouldn't be in QML anyway. It's not used by anything at this point. Let's remove it. Contributes to issue CURA-7868.
The UM.Application.platform property has been removed by someone for quite some time. I don't know why the check was in there, but it doesn't seem needed at all as the property was always undefined
Contributes to CURA-5784.