Remove unused code from get_ca_certs() function