This might have been needed for the old protocols; the function is used in them to correctly send item data. In newer versions all items are potentially enchantable, so it serves no other purpose.