Removed unused function

This function was added while adding the LAB mode in an approach that was discarded.