Reduce code size and ram usage of PWM supervisor code.
Delete unused code.