Directive 2005/89/EC concerning measures to safeguard security of electricity supply and infrastructure investment was repealed by Regulation (EU) 2019/941 of the European Parliament and of the Council of 5 June 2019 on risk-preparedness in the electricity sector.