LED: remove duplicate function