Remove deprecated code from include/class.ticket.php