I have a ceiling fan with separate fan speed control and switch on the wall. I would like to replace it with a plain light fixture if it is not too hard to get the wiring into a safe configuration.
It is wired to a switch and fan speed control as follows:
All these connections are inside the switch box with the fan control and switch, except between cable 2 and the fan.
Is it compliant and safe to simply remove the fan control and abandon the black wire in cable 2?
This is in the US. The house was built in 1950s, but the wiring in this room appears much newer.
There are a few related questions already present. I don't believe any of these cover my case, but I could be wrong.