public void remove(Light l) {
        for (int i = 0; i < listSize; i++) {
            if (list[i] == l) {
                remove(i);
                return;
            }
        }
    }
Removes the given light from the LightList.

@param l the light to remove
jme3-core/src/main/java/com/jme3/light/LightList.java