You have to remove the sections containing "SITE_CONFIG_SHOW_CAPTCHA_ON_CONTACT_FORM " Like I've shown below
// check captcha
if(!isErrors())
{
if (!isset($_REQUEST['g-recaptcha-response']))
{
setError(t("invalid_captcha", "Captcha confirmation text is...