The answer to this question is tricky because while some organs may have lost their original purpose throughout human evolution, they still play roles in our bodies. However, if we're looking for an organ that has absolutely no function, the cornea might be the closest we can get.
The cornea is the transparent outer layer of the eye that helps focus light. It doesn't have any blood vessels, which is why cornea transplants are rarely rejected. While the cornea is crucial for vision, it itself doesn't perform any functions besides being a protective barrier.
However, it's important to note that some sources may argue that the appendix, tonsils, adenoids, gallbladder, uterus, thymus gland, and spleen are also "useless" organs. However, research shows that these organs might have some minor or yet-to-be-discovered functions.
Therefore, while it's difficult to definitively say which organ has no function, the cornea is the closest we can get based on current scientific understanding.