Salt is usually added to get rid of the bitterness of the eggplant. But, today's varieties of eggplants are less bitter than they used to be, so, in short, there is no need to salt the eggplant or to soak it in saltwater before cooking. For more information on this, Chowhound.com explains it perfectly.