In XCOM 2 this feature was lost, probably in favor of emphasizing the Sharpshooter's Gunslinger tree.
XCOM EU/EW soldiers always had a pistol to rely on in case they found themselves unable to reload or against an enemy with very little health left, even if said soldier was carrying a piece of equipment (except the Heavy class, which had Rocket Launchers instead).