LightRS: remove unneeded code