Charge-density-wave melted superconductivity in 1T-TiSe2