[#1994] Remove deprecated assert functions.