WHen talking about electrolysis.
Molten NaCl only has two possible reactions, Oxidation of Cl- and Reudction of Na+
Aqueous NaCl has four possible reactions, Oxidation of Cl- and H20 and Reduction of Na+ and H20
In other words, molten solutions do not contain water so you ignore it when writing oxidation/reduction equation